| Total Complexity | 4 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | class ProxyUpdatedEvent extends Event implements ShouldBroadcast |
||
| 18 | { |
||
| 19 | public $listeners = []; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var proxy |
||
| 23 | */ |
||
| 24 | public $proxy; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * ProxyUpdatedEvent constructor. |
||
| 28 | * |
||
| 29 | * @param $user |
||
| 30 | */ |
||
| 31 | public function __construct(Proxy $proxy) |
||
| 32 | { |
||
| 33 | $this->proxy = $proxy; |
||
| 34 | } |
||
| 35 | |||
| 36 | public function broadcastOn() |
||
| 37 | { |
||
| 38 | return new PrivateChannel('user.'.$this->proxy->user_id); |
||
|
|
|||
| 39 | } |
||
| 40 | |||
| 41 | public function broadcastAs() |
||
| 44 | } |
||
| 45 | |||
| 46 | public function broadcastWith() |
||
| 51 |