protected function createEvent($eventName)
    {
        if (null === $this->defaultEvent) {
            return new Event($eventName);
        }
        $event = clone $this->defaultEvent;
        $event->setName($eventName);
        return $event;
    }
protected function createEvent($eventName)
    {
        if (null === $this->defaultEvent) {
            return new Event($eventName);
        }
        $event = clone $this->defaultEvent;
        $event->setName($eventName);
        return $event;
    }
protected function createEvent ( $ eventName ) { if ( null === $ this -> defaultEvent ) { return new Event ( $ eventName ) ; } $ event = clone $ this -> defaultEvent ; $ event -> setName ( $ eventName ) ; return $ event ; }
Create an event.
@param  string $eventName
@return \Gamegos\Events\EventInterface
Create an event .