public function addEvent(AbstractEvent $event) {
        $this->eventHandlerFactory->getHandlerForEvent($event)->addEvent($event);
        return $this;
    }
public function addEvent(AbstractEvent $event) {
        $this->eventHandlerFactory->getHandlerForEvent($event)->addEvent($event);
        return $this;
    }
public function addEvent ( AbstractEvent $ event ) { $ this -> eventHandlerFactory -> getHandlerForEvent ( $ event ) -> addEvent ( $ event ) ; return $ this ; }
Adds an event to the builder.
@param \ManiaScript\Builder\Event\AbstractEvent $event The event.
@return $this Implementing fluent interface.
Adds an event to the builder .