Example #1
0
 /**
  * Wrapper for deprecated $criterion property
  *
  * @param string $property
  * @return mixed
  */
 public function __get($property)
 {
     if ($property === 'criterion') {
         return $this->query;
     }
     return parent::__get($property);
 }
Example #2
0
 /**
  * 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);
 }