1 | <?php |
||
7 | class PusherBroadcaster implements BroadcasterInterface |
||
8 | { |
||
9 | /** |
||
10 | * @var Pusher |
||
11 | */ |
||
12 | private $pusher; |
||
13 | |||
14 | /** |
||
15 | * PusherBroadcaster constructor. |
||
16 | * @param Pusher $pusher |
||
17 | */ |
||
18 | 9 | public function __construct(Pusher $pusher) |
|
22 | |||
23 | /** |
||
24 | * Broadcast the given event. |
||
25 | * |
||
26 | * @param array $channels |
||
27 | * @param string $event |
||
28 | * @param array $payload |
||
29 | * @return void |
||
30 | */ |
||
31 | 3 | public function broadcast(array $channels, $event, array $payload = []) |
|
35 | |||
36 | /** |
||
37 | * Get the Pusher instance. |
||
38 | * |
||
39 | * @return Pusher |
||
40 | */ |
||
41 | 3 | public function getPusher() |
|
45 | } |
||
46 |