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 | * @return void |
||
|
|||
25 | */ |
||
26 | public function __construct($token) |
||
30 | |||
31 | /** |
||
32 | * Get the notification's channels. |
||
33 | * |
||
34 | * @param mixed $notifiable |
||
35 | * @return array|string |
||
36 | */ |
||
37 | public function via($notifiable) |
||
41 | |||
42 | /** |
||
43 | * Build the mail representation of the notification. |
||
44 | * |
||
45 | * @param mixed $notifiable |
||
46 | * |
||
47 | * @return \Illuminate\Notifications\Messages\MailMessage |
||
48 | */ |
||
49 | public function toMail($notifiable) |
||
58 | } |
||
59 |
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.