| Total Complexity | 2 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | class CandidateRated |
||
| 12 | { |
||
| 13 | use Dispatchable; |
||
| 14 | use InteractsWithSockets; |
||
| 15 | use SerializesModels; |
||
|
|
|||
| 16 | |||
| 17 | /** |
||
| 18 | * @var Candidate |
||
| 19 | */ |
||
| 20 | public $candidate; |
||
| 21 | |||
| 22 | public $userId; |
||
| 23 | public $previousRate; |
||
| 24 | public $newRate; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Create a new event instance. |
||
| 28 | * |
||
| 29 | * @param Candidate $candidate |
||
| 30 | * @param $previousRate |
||
| 31 | * @param $newRate |
||
| 32 | * @param $userId |
||
| 33 | */ |
||
| 34 | public function __construct(Candidate $candidate, $previousRate, $newRate, $userId) |
||
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Get the channels the event should broadcast on. |
||
| 44 | * |
||
| 45 | * @return \Illuminate\Broadcasting\Channel|array |
||
| 46 | */ |
||
| 47 | public function broadcastOn() |
||
| 52 |