public function setEvents(array $events)
    {
        foreach ($events as $event) {
            $event->ensureStopped();
        }

        $this->data['events'] = $events;
    }
public function setEvents(array $events)
    {
        foreach ($events as $event) {
            $event->ensureStopped();
        }

        $this->data['events'] = $events;
    }
public function setEvents ( array $ events ) { foreach ( $ events as $ event ) { $ event -> ensureStopped ( ) ; } $ this -> data [ 'events' ] = $ events ; }
Sets the request events.

@param array $events The request events
Sets the request events .