/** * Wrapper for deprecated $criterion property * * @param string $property * @return mixed */ public function __get($property) { if ($property === 'criterion') { return $this->query; } return parent::__get($property); }
/** * Magic getter for retrieving convenience properties. * * @param string $property The name of the property to retrieve * * @return mixed */ public function __get($property) { switch ($property) { case 'keyword': return $this->getKeyword(); } return parent::__get($property); }