Total Complexity | 4 |
Total Lines | 59 |
Duplicated Lines | 0 % |
Coverage | 73.68% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | class NewTechTipCommentNotification extends Notification implements ShouldQueue |
||
13 | { |
||
14 | use Queueable; |
||
15 | protected $name, $tipID; |
||
16 | |||
17 | /** |
||
18 | * Create a new notification instance. |
||
19 | * |
||
20 | * @return void |
||
21 | */ |
||
22 | 4 | public function __construct($name, $tipID) |
|
23 | { |
||
24 | 4 | $this->name = $name; |
|
25 | 4 | $this->tipID = $tipID; |
|
26 | 4 | } |
|
27 | |||
28 | /** |
||
29 | * Get the notification's delivery channels. |
||
30 | * |
||
31 | * @param mixed $notifiable |
||
32 | * @return array |
||
33 | */ |
||
34 | 4 | public function via($notifiable) |
|
35 | { |
||
36 | 4 | return ['database']; |
|
37 | } |
||
38 | |||
39 | /** |
||
40 | * Get the mail representation of the notification. |
||
41 | * |
||
42 | * @param mixed $notifiable |
||
43 | * @return \Illuminate\Notifications\Messages\MailMessage |
||
44 | */ |
||
45 | public function toMail($notifiable) |
||
51 | } |
||
52 | |||
53 | /** |
||
54 | * Get the array representation of the notification. |
||
55 | * |
||
56 | * @param mixed $notifiable |
||
57 | * @return array |
||
58 | */ |
||
59 | 4 | public function toArray($notifiable) |
|
76 |