src/Utility/ICal/IcEvent.php
public function setAttendees(array $attendees = []) : void
    {
        $iCalAttendees = new Attendees();
        foreach ($attendees as $email) {
            $iCalAttendees->add("MAILTO:$email", [
                'ROLE' => 'REQ-PARTICIPANT',
                'PARTSTAT' => 'NEEDS-ACTION',
                'RSVP' => 'TRUE',
            ]);
        }
        $this->event->setAttendees($iCalAttendees);
    }
public function setAttendees(array $attendees = []) : void
    {
        $iCalAttendees = new Attendees();
        foreach ($attendees as $email) {
            $iCalAttendees->add("MAILTO:$email", [
                'ROLE' => 'REQ-PARTICIPANT',
                'PARTSTAT' => 'NEEDS-ACTION',
                'RSVP' => 'TRUE',
            ]);
        }
        $this->event->setAttendees($iCalAttendees);
    }
public function setAttendees ( array $ attendees = [ ] ) : void { $ iCalAttendees = new Attendees ( ) ; foreach ( $ attendees as $ email ) { $ iCalAttendees -> add ( "MAILTO:$email" , [ 'ROLE' => 'REQ-PARTICIPANT' , 'PARTSTAT' => 'NEEDS-ACTION' , 'RSVP' => 'TRUE' , ] ) ; } $ this -> event -> setAttendees ( $ iCalAttendees ) ; }
Set Event attendees

@param string[] $attendees A list of attendees' emails
@return void
Set Event attendees