Exemple #1
0
 /**
  * Adds a calendar item.
  *
  * @param CalendarItem $calendarItem
  *
  * @return $this
  */
 public function addCalendarItem(CalendarItem $calendarItem)
 {
     $this->calendarItems[] = $calendarItem;
     if ($calendarItem->getCalendar() != $this) {
         $calendarItem->setCalendar($this);
     }
     return $this;
 }