public function addEventToList(Event $event)
    {
        if ($this->_eventList) {
            $this->_eventList->add($event);
        }

        return $this;
    }
public function addEventToList(Event $event)
    {
        if ($this->_eventList) {
            $this->_eventList->add($event);
        }

        return $this;
    }
public function addEventToList ( Event $ event ) { if ( $ this -> _eventList ) { $ this -> _eventList -> add ( $ event ) ; } return $ this ; }
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
Adds an event to the list if the event list object is present .