Пример #1
0
 /**
  * Creates an event corresponding to this calendar item.
  *
  * @param DateTime $dateStart
  * @param DateTime $dateEnd
  *
  * @return Event
  */
 protected function createEvent(DateTime $dateStart, DateTime $dateEnd)
 {
     $event = new Event();
     $event->setTitle($this->title);
     $event->setDescription($this->description);
     $event->setDateStart($dateStart);
     $event->setDateEnd($dateEnd);
     return $event;
 }