Codeception\Specify\ObjectProperty::__construct PHP Method

__construct() public method

ObjectProperty constructor.
public __construct ( $owner, $property, $value = null )
$owner
$property
$value
    public function __construct($owner, $property, $value = null)
    {
        $this->_owner = $owner;
        $this->_property = $property;
        if (!$this->_property instanceof \ReflectionProperty) {
            $this->_property = new \ReflectionProperty($owner, $this->_property);
        }
        $this->_property->setAccessible(true);
        $this->_initValue = $value === null ? $this->getValue() : $value;
    }