| Total Complexity | 3 |
| Total Lines | 48 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 15 | class LoanTableUpdated implements ShouldBroadcast |
||
| 16 | { |
||
| 17 | use Dispatchable, InteractsWithSockets, SerializesModels; |
||
|
|
|||
| 18 | |||
| 19 | /** |
||
| 20 | * Action to highlight |
||
| 21 | * |
||
| 22 | * @var string |
||
| 23 | */ |
||
| 24 | public $action; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Loan to highlight |
||
| 28 | * |
||
| 29 | * @var string |
||
| 30 | */ |
||
| 31 | public $loan; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Sender window |
||
| 35 | * |
||
| 36 | * @var string |
||
| 37 | */ |
||
| 38 | public $sender; |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Create a new event instance. |
||
| 42 | * |
||
| 43 | * @param string $action |
||
| 44 | * @param Request $request |
||
| 45 | * @param Loan|null $loan |
||
| 46 | */ |
||
| 47 | public function __construct(string $action, Request $request, Loan $loan = null) |
||
| 52 | } |
||
| 53 | |||
| 54 | /** |
||
| 55 | * Get the channels the event should broadcast on. |
||
| 56 | * |
||
| 57 | * @return \Illuminate\Broadcasting\Channel|array |
||
| 58 | */ |
||
| 59 | public function broadcastOn() |
||
| 65 |