1 | <?php |
||
9 | class ResetPasswordNotification extends Notification implements ShouldQueue |
||
10 | { |
||
11 | use Queueable; |
||
12 | |||
13 | /** |
||
14 | * The password reset token. |
||
15 | * |
||
16 | * @var string |
||
17 | */ |
||
18 | public $token; |
||
19 | |||
20 | /** |
||
21 | * Create a notification instance. |
||
22 | * |
||
23 | * @param string $token |
||
24 | * |
||
25 | * @return void |
||
|
|||
26 | */ |
||
27 | public function __construct($token) |
||
31 | |||
32 | /** |
||
33 | * Get the notification's channels. |
||
34 | * |
||
35 | * @param mixed $notifiable |
||
36 | * |
||
37 | * @return array|string |
||
38 | */ |
||
39 | public function via($notifiable) |
||
43 | |||
44 | /** |
||
45 | * Build the mail representation of the notification. |
||
46 | * |
||
47 | * @param mixed $notifiable |
||
48 | * |
||
49 | * @return \Illuminate\Notifications\Messages\MailMessage |
||
50 | */ |
||
51 | public function toMail($notifiable) |
||
60 | } |
||
61 |
Adding a
@return
annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.