public function emit(string $name, bool $cancelable = false): Event
    {
        return $this->dispatch(new Event($name, $cancelable));
    }
public function emit(string $name, bool $cancelable = false): Event
    {
        return $this->dispatch(new Event($name, $cancelable));
    }
public function emit ( string $ name , bool $ cancelable = false ) : Event { return $ this -> dispatch ( new Event ( $ name , $ cancelable ) ) ; }
Emits an event

@param string $name Event's name
@param boolean $cancelable (optional) Cancelable event

@return Event
Emits an event