original_string: public function addEventToList(Event $event)
      {
          if ($this->_eventList) {
              $this->_eventList->add($event);
          }
  
          return $this;
      }
code: public function addEventToList(Event $event)
      {
          if ($this->_eventList) {
              $this->_eventList->add($event);
          }
  
          return $this;
      }
code_tokens: public function addEventToList ( Event $ event ) { if ( $ this -> _eventList ) { $ this -> _eventList -> add ( $ event ) ; } return $ this ; }
docstring: Adds an event to the list if the event list object is present.
  
  @param \Cake\Event\Event $event An event to add to the list.
  @return $this
docstring_tokens: Adds an event to the list if the event list object is present .