PhpSpec\Wrapper\Subject\WrappedObject::__construct PHP Method

__construct() public method

public __construct ( object | null $instance, PhpSpec\Formatter\Presenter\Presenter $presenter )
$instance object | null
$presenter PhpSpec\Formatter\Presenter\Presenter
    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;
        }
    }