/** * Magic getter. * * @param string $name component or property name * * @return mixed param or property value */ public function __get($name) { if ($name && $this->canGetProperty($name)) { return parent::__get($name); } else { return $this->params[$name]; } }