\Hubleto\Framework\Interfaces\EventManagerInterface
Methods
ƒ init
public init(): void
ƒ log
public log(string $msg): void
Parameters
| Parameter |
Type |
Description |
$msg |
string |
|
ƒ addEventListener
public addEventListener(string $event, \Hubleto\Framework\Interfaces\EventListenerInterface $listener): void
Parameters
| Parameter |
Type |
Description |
$event |
string |
|
$listener |
\Hubleto\Framework\Interfaces\EventListenerInterface |
|
ƒ getEventListeners
public getEventListeners(): array
ƒ fire
public fire(string $event, array $args): void
Parameters
| Parameter |
Type |
Description |
$event |
string |
|
$args |
array |
|