public function __construct($name) { $this->name = $name; $this->isConstructor = $name == __FUNCTION__; }