/** * Get a property * * Implement a virtual 'params' property to return the params object. * * @param string $name The property name. * @return string $value The property value. */ public function __get($name) { if ($name = 'params') { return $this->getParameters(); } return parent::__get($name); }