VISU - PHP Game Framework

VoidDispatcher
in package
implements DispatcherInterface

Dispatches all recieved signals into a deep empty void, helpful for testing purposes

Table of Contents

Interfaces

DispatcherInterface

Methods

dispatch()  : void
Dispatch a given signal to all handlers Calling this method will invoke all handlers that are registered to the given signal key.

Methods

dispatch()

Dispatch a given signal to all handlers Calling this method will invoke all handlers that are registered to the given signal key.

public dispatch(string $key, Signal $signal) : void
Parameters
$key : string

The signal key, this is name on which handlers are registered

$signal : Signal

The signal to dispatch


        
On this page

Search results