public function setEvents($events)
    {
        $events = (array)$events;
        foreach ($events as $event) {
            $this->addEvent($event);
        }
    }
public function setEvents($events)
    {
        $events = (array)$events;
        foreach ($events as $event) {
            $this->addEvent($event);
        }
    }
public function setEvents ( $ events ) { $ events = ( array ) $ events ; foreach ( $ events as $ event ) { $ this -> addEvent ( $ event ) ; } }
Batch set events by an array of Event objects

@param Event[] $events
Batch set events by an array of Event objects