Total Complexity | 4 |
Total Lines | 61 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class NewTechTipComment extends Notification implements ShouldQueue |
||
11 | { |
||
12 | use Queueable; |
||
13 | protected $user, $tipID; |
||
14 | |||
15 | /** |
||
16 | * Create a new notification instance. |
||
17 | * |
||
18 | * @return void |
||
19 | */ |
||
20 | public function __construct($user, $tipID) |
||
21 | { |
||
22 | // |
||
23 | $this->user = $user; |
||
24 | $this->tipID = $tipID; |
||
25 | } |
||
26 | |||
27 | /** |
||
28 | * Get the notification's delivery channels. |
||
29 | * |
||
30 | * @param mixed $notifiable |
||
31 | * @return array |
||
32 | */ |
||
33 | public function via($notifiable) |
||
34 | { |
||
35 | return ['database']; |
||
36 | } |
||
37 | |||
38 | /** |
||
39 | * Get the mail representation of the notification. |
||
40 | * |
||
41 | * @param mixed $notifiable |
||
42 | * @return \Illuminate\Notifications\Messages\MailMessage |
||
43 | */ |
||
44 | public function toMail($notifiable) |
||
45 | { |
||
46 | // return (new MailMessage) |
||
47 | // ->line('The introduction to the notification.') |
||
48 | // ->action('Notification Action', url('/')) |
||
49 | // ->line('Thank you for using our application!'); |
||
50 | } |
||
51 | |||
52 | /** |
||
53 | * Get the array representation of the notification. |
||
54 | * |
||
55 | * @param mixed $notifiable |
||
56 | * @return array |
||
57 | */ |
||
58 | public function toArray($notifiable) |
||
71 | ] |
||
72 | )) |
||
73 | ]; |
||
74 | } |
||
76 |