public function __get($name) { switch ($name) { case 'options': return $this->options; default: throw new ezcBasePropertyNotFoundException($name); } }