/** * Magic method to handle get and set methods for properties * * @param string $method * @param array $parameters * * @return mixed */ public function __call($method, $parameters) { if (isset($this->queryMap[$method], $parameters[0])) { $this->updateQuery($parameters[0], $this->queryMap[$method]); } return parent::__call($method, $parameters); }