protected function prepareEvent($event)
    {
        $event = $this->ensureEvent($event);
        $name = $event->getName();
        $event->setEmitter($this);

        return [$name, $event];
    }
protected function prepareEvent($event)
    {
        $event = $this->ensureEvent($event);
        $name = $event->getName();
        $event->setEmitter($this);

        return [$name, $event];
    }
protected function prepareEvent ( $ event ) { $ event = $ this -> ensureEvent ( $ event ) ; $ name = $ event -> getName ( ) ; $ event -> setEmitter ( $ this ) ; return [ $ name , $ event ] ; }
Prepare an event for emitting.

@param string|EventInterface $event

@return array
Prepare an event for emitting .