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