Total Complexity | 4 |
Total Lines | 59 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | class ResetPasswordNotification extends Notification |
||
10 | { |
||
11 | use Queueable; |
||
12 | |||
13 | /** |
||
14 | * @var string |
||
15 | */ |
||
16 | protected $token; |
||
17 | |||
18 | /** |
||
19 | * Create a new notification instance. |
||
20 | * |
||
21 | * @param string $token |
||
22 | * |
||
23 | * @return void |
||
24 | */ |
||
25 | public function __construct(string $token) |
||
26 | { |
||
27 | $this->token = $token; |
||
28 | } |
||
29 | |||
30 | /** |
||
31 | * Get the notification's delivery channels. |
||
32 | * |
||
33 | * @param mixed $notifiable |
||
34 | * @return array |
||
35 | */ |
||
36 | public function via($notifiable) |
||
37 | { |
||
38 | return ['mail']; |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * Build the mail representation of the notification. |
||
43 | * |
||
44 | * @param \Illuminate\Contracts\Auth\CanResetPassword $notifiable |
||
45 | * @return \Illuminate\Notifications\Messages\MailMessage |
||
46 | */ |
||
47 | public function toMail($notifiable) |
||
57 | } |
||
58 | |||
59 | /** |
||
60 | * Get the array representation of the notification. |
||
61 | * |
||
62 | * @param mixed $notifiable |
||
63 | * @return array |
||
64 | */ |
||
65 | public function toArray($notifiable) |
||
68 | // |
||
69 | ]; |
||
72 |