public function __call($method, $parameters) { if (array_key_exists($method, $this->properties) && !method_exists($this, $method)) { return $this->properties[$method]; } return parent::__call($method, $parameters); }