public function setEventList(EventList $eventList)
    {
        $this->_eventList = $eventList;
        $this->_trackEvents = true;

        return $this;
    }
public function setEventList(EventList $eventList)
    {
        $this->_eventList = $eventList;
        $this->_trackEvents = true;

        return $this;
    }
public function setEventList ( EventList $ eventList ) { $ this -> _eventList = $ eventList ; $ this -> _trackEvents = true ; return $ this ; }
Enables the listing of dispatched events.

@param \Cake\Event\EventList $eventList The event list object to use.
@return $this
Enables the listing of dispatched events .