kahlan\Expectation::__get PHP Method

__get() public method

Magic getter, if called with 'not' invert the _not attribute.
public __get ( $name )
    public function __get($name)
    {
        if ($name !== 'not') {
            throw new Exception("Unsupported attribute `{$name}`.");
        }
        $this->_not = !$this->_not;
        return $this;
    }