src/Utility/ICal/IcEmail.php
protected function getEventCalendar(array $eventOptions) : Calendar
    {
        // New iCal event
        $event = (new IcEvent($eventOptions))->getEvent();

        // New iCal calendar
        $calendar = new IcCalendar();
        $calendar->addEvent($event);

        return $calendar->getCalendar();
    }
protected function getEventCalendar(array $eventOptions) : Calendar
    {
        // New iCal event
        $event = (new IcEvent($eventOptions))->getEvent();

        // New iCal calendar
        $calendar = new IcCalendar();
        $calendar->addEvent($event);

        return $calendar->getCalendar();
    }
protected function getEventCalendar ( array $ eventOptions ) : Calendar { // New iCal event $ event = ( new IcEvent ( $ eventOptions ) ) -> getEvent ( ) ; // New iCal calendar $ calendar = new IcCalendar ( ) ; $ calendar -> addEvent ( $ event ) ; return $ calendar -> getCalendar ( ) ; }
Get iCal calendar with given event

@param mixed[] $eventOptions Options for event creation
@return \Eluceo\iCal\Component\Calendar Whatever IcCalendar::getCalendar() returns
Get iCal calendar with given event