public function getEvent() { if (empty($this->event)) { throw new Phergie_Plugin_Exception('Event cannot be accessed before one is set', Phergie_Plugin_Exception::ERR_NO_EVENT); } return $this->event; }