Total Complexity | 4 |
Total Lines | 49 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | class FlaggedTechTipCommentNotification extends Notification |
||
13 | { |
||
14 | use Queueable; |
||
15 | |||
16 | protected $comment; |
||
17 | protected $user; |
||
18 | |||
19 | /** |
||
20 | * Create a new notification instance. |
||
21 | * |
||
22 | * @return void |
||
23 | */ |
||
24 | public function __construct(TechTipComment $comment, User $user) |
||
28 | } |
||
29 | |||
30 | /** |
||
31 | * Get the notification's delivery channels |
||
32 | */ |
||
33 | public function via($notifiable) |
||
|
|||
34 | { |
||
35 | return ['mail', 'database']; |
||
36 | } |
||
37 | |||
38 | /** |
||
39 | * Get the mail representation of the notification. |
||
40 | */ |
||
41 | public function toMail($notifiable) |
||
49 | } |
||
50 | |||
51 | /** |
||
52 | * Get the array representation of the notification |
||
53 | */ |
||
54 | public function toArray($notifiable) |
||
65 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.