Zend\Mvc\Controller\AbstractController::getEvent PHP Method

getEvent() public method

Will create a new MvcEvent if none provided.
public getEvent ( ) : MvcEvent
return Zend\Mvc\MvcEvent
    public function getEvent()
    {
        if (!$this->event) {
            $this->setEvent(new MvcEvent());
        }
        return $this->event;
    }