1 | <?php |
||
14 | class DomainMessageErrorEventHandler implements GameErrorEventHandler, MessageErrorEventHandler |
||
15 | { |
||
16 | /** |
||
17 | * @var EventBus |
||
18 | */ |
||
19 | private $eventBus; |
||
20 | |||
21 | /** |
||
22 | * Constructor |
||
23 | * |
||
24 | * @param EventBus $eventBus |
||
25 | */ |
||
26 | 3 | public function __construct(EventBus $eventBus) |
|
30 | |||
31 | /** |
||
32 | * Handles an error |
||
33 | * |
||
34 | * @param EventInterface $error |
||
35 | * @param mixed $context |
||
36 | * |
||
37 | * @return void |
||
38 | */ |
||
39 | 3 | public function handle(EventInterface $error, $context = null) |
|
52 | } |
||
53 |