public function eventManager(EventManager $eventManager = null)
    {
        if ($eventManager !== null) {
            $this->_eventManager = $eventManager;
        }

        return $this->_eventManager;
    }
public function eventManager(EventManager $eventManager = null)
    {
        if ($eventManager !== null) {
            $this->_eventManager = $eventManager;
        }

        return $this->_eventManager;
    }
public function eventManager ( EventManager $ eventManager = null ) { if ( $ eventManager !== null ) { $ this -> _eventManager = $ eventManager ; } return $ this -> _eventManager ; }
Gets or sets event manager instance associated to this dispatcher.

@param \Cake\Event\EventManager|null $eventManager The instance to set
@return \Cake\Event\EventManager
Gets or sets event manager instance associated to this dispatcher .