Total Complexity | 3 |
Total Lines | 41 |
Duplicated Lines | 0 % |
Coverage | 71.43% |
Changes | 0 |
1 | <?php |
||
12 | class ParticipantCreated extends Notification implements ShouldQueue |
||
13 | { |
||
14 | use Queueable; |
||
15 | |||
16 | /** |
||
17 | * @var Participant |
||
18 | */ |
||
19 | public Participant $participant; |
||
20 | |||
21 | /** |
||
22 | * Create a new notification instance. |
||
23 | * |
||
24 | * @param Participant $participant |
||
25 | * @return void |
||
26 | */ |
||
27 | 9 | public function __construct(Participant $participant) |
|
28 | { |
||
29 | 9 | $this->participant = $participant; |
|
30 | 9 | } |
|
31 | |||
32 | /** |
||
33 | * Get the notification's delivery channels. |
||
34 | * |
||
35 | * @param mixed $notifiable |
||
36 | * @return array |
||
37 | */ |
||
38 | 9 | public function via($notifiable) |
|
41 | } |
||
42 | |||
43 | /** |
||
44 | * Get the array representation of the notification. |
||
45 | * |
||
46 | * @param mixed $notifiable |
||
47 | * @return array |
||
48 | */ |
||
49 | public function toArray($notifiable) |
||
56 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.