| Total Complexity | 2 |
| Total Lines | 46 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class Pusher extends Job implements QueueableJobInterface |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * Realtime channel. |
||
| 14 | * |
||
| 15 | * @var string |
||
| 16 | */ |
||
| 17 | protected $channel; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Realtime event. |
||
| 21 | * |
||
| 22 | * @var string |
||
| 23 | */ |
||
| 24 | protected $event; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Realtime params. |
||
| 28 | * |
||
| 29 | * @var array |
||
| 30 | */ |
||
| 31 | protected $params; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Constructor setup info for Pusher. |
||
| 35 | * |
||
| 36 | * @param string $channel |
||
| 37 | * @param string $event |
||
| 38 | * @param array $params |
||
| 39 | */ |
||
| 40 | public function __construct(PusherNotification $pusherNotification) |
||
| 41 | { |
||
| 42 | $this->channel = $pusherNotification->channel; |
||
| 43 | $this->event = $pusherNotification->event; |
||
| 44 | $this->params = $pusherNotification->params; |
||
| 45 | } |
||
| 46 | |||
| 47 | /** |
||
| 48 | * Handle the pusher request. |
||
| 49 | * |
||
| 50 | * @return void |
||
| 51 | */ |
||
| 52 | public function handle() |
||
| 56 | } |
||
| 57 | } |
||
| 58 |