Nelmio\Alice\Definition\Object\SimpleObject::__construct PHP Method

__construct() public method

public __construct ( string $reference, object $instance )
$reference string
$instance object
    public function __construct(string $reference, $instance)
    {
        if (false === is_object($instance)) {
            throw TypeErrorFactory::createForObjectArgument($instance);
        }
        $this->reference = $reference;
        $this->instance = $instance;
    }