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