1 | <?php |
||
11 | class JoinHandler extends AbstractEvent implements EventInterface, EventSubscriberInterface, EventPublisherInterface |
||
12 | { |
||
13 | private $broadcast; |
||
14 | private $logger; |
||
15 | |||
16 | public function __construct(Broadcast $broadcast, LoggerInterface $logger) |
||
21 | |||
22 | /** |
||
23 | * Changel name. For client side this is nsp. |
||
24 | */ |
||
25 | public static function broadcastOn(): array |
||
29 | |||
30 | public function fire(): array |
||
39 | |||
40 | /** |
||
41 | * Event name |
||
42 | */ |
||
43 | public static function name(): string |
||
47 | |||
48 | /** |
||
49 | * Handle client event |
||
50 | */ |
||
51 | public function handle() |
||
59 | } |
||
60 |