src/CreateEventCapableTrait.php
protected function _createEvent($name, $params = [], $target = null, $propagation = true)
    {
        return new Event($name, $params, $target, $propagation);
    }
protected function _createEvent($name, $params = [], $target = null, $propagation = true)
    {
        return new Event($name, $params, $target, $propagation);
    }
Creates a new event instance.

@since [*next-version*]

@param string $name        The event name.
@param array  $params      The event parameters.
@param mixed  $target      The target object. Used for context.
@param bool   $propagation True to propagate the event, false to not.

@return EventInterface The new event.