/** * @return int */ public function getDuration() { if (!$this->event) { return null; } return $this->event->getDuration(); }