original_string: public function setEventList(EventList $eventList)
      {
          $this->_eventList = $eventList;
          $this->_trackEvents = true;
  
          return $this;
      }
code: public function setEventList(EventList $eventList)
      {
          $this->_eventList = $eventList;
          $this->_trackEvents = true;
  
          return $this;
      }
code_tokens: public function setEventList ( EventList $ eventList ) { $ this -> _eventList = $ eventList ; $ this -> _trackEvents = true ; return $ this ; }
docstring: Enables the listing of dispatched events.
  
  @param \Cake\Event\EventList $eventList The event list object to use.
  @return $this
docstring_tokens: Enables the listing of dispatched events .