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