protected function newEvent(
        $eventName,
        $target = null,
        array $parameters = []
    )/*# : EventInterface */ {
        if (is_object($eventName)) {
            return $eventName;
        } else {
            return new Event($eventName, $target, $parameters);
        }
    }
protected function newEvent(
        $eventName,
        $target = null,
        array $parameters = []
    )/*# : EventInterface */ {
        if (is_object($eventName)) {
            return $eventName;
        } else {
            return new Event($eventName, $target, $parameters);
        }
    }
protected function newEvent ( $ eventName , $ target = null , array $ parameters = [ ] ) /*# : EventInterface */ { if ( is_object ( $ eventName ) ) { return $ eventName ; } else { return new Event ( $ eventName , $ target , $ parameters ) ; } }
Create a new event

@param  string|EventInterface $eventName
@param  object|string|null $target
@param  array $parameters
@return EventInterface
@access protected
Create a new event