$value) { $name = (string) $name; if ('_' !== $name[0]) { $this->{$name} = $value; } } return $this; } public function setDispatcher(Qs_Event_Dispatcher $dispatcher) { if (empty($this->pageId)) { throw new Exception('Event property $pageId can not be empty'); } return parent::setDispatcher($dispatcher); } }