public function __construct($instance, Presenter $presenter) { $this->instance = $instance; $this->presenter = $presenter; if (is_object($this->instance)) { $this->classname = get_class($this->instance); $this->isInstantiated = true; } }