original_string: public function setEvents(array $events)
      {
          foreach ($events as $event) {
              $event->ensureStopped();
          }
  
          $this->data['events'] = $events;
      }
code: public function setEvents(array $events)
      {
          foreach ($events as $event) {
              $event->ensureStopped();
          }
  
          $this->data['events'] = $events;
      }
code_tokens: public function setEvents ( array $ events ) { foreach ( $ events as $ event ) { $ event -> ensureStopped ( ) ; } $ this -> data [ 'events' ] = $ events ; }
docstring: Sets the request events.
  
  @param array $events The request events
docstring_tokens: Sets the request events .