public function getHandlerForEvent(AbstractEvent $event) {
        $parts = explode('\\', get_class($event));
        $class = end($parts);
        return $this->getHandler($class);
    }
public function getHandlerForEvent(AbstractEvent $event) {
        $parts = explode('\\', get_class($event));
        $class = end($parts);
        return $this->getHandler($class);
    }
public function getHandlerForEvent ( AbstractEvent $ event ) { $ parts = explode ( '\\' , get_class ( $ event ) ) ; $ class = end ( $ parts ) ; return $ this -> getHandler ( $ class ) ; }
Returns the event handler responsible for the specified event.
@param \ManiaScript\Builder\Event\AbstractEvent $event The event.
@return \ManiaScript\Builder\Event\Handler\AbstractHandler The event handler.
Returns the event handler responsible for the specified event .