1 | <?php |
||
22 | class PasswordResetRequestNotification extends Notification |
||
23 | { |
||
24 | /** |
||
25 | * The password reset token. |
||
26 | * |
||
27 | * @var string |
||
28 | */ |
||
29 | public $token; |
||
30 | |||
31 | /** |
||
32 | * The password reset token expiration. |
||
33 | * |
||
34 | * @var string |
||
35 | */ |
||
36 | public $expiration; |
||
37 | |||
38 | /** |
||
39 | * Create a notification instance. |
||
40 | * |
||
41 | * @param array $token |
||
42 | * @param string $expiration |
||
43 | * |
||
44 | * @return void |
||
|
|||
45 | */ |
||
46 | public function __construct(array $token, $expiration) |
||
51 | |||
52 | /** |
||
53 | * Get the notification's channels. |
||
54 | * |
||
55 | * @param mixed $notifiable |
||
56 | * |
||
57 | * @return array|string |
||
58 | */ |
||
59 | public function via($notifiable) |
||
63 | |||
64 | /** |
||
65 | * Build the mail representation of the notification. |
||
66 | * |
||
67 | * @return \Illuminate\Notifications\Messages\MailMessage |
||
68 | */ |
||
69 | public function toMail() |
||
81 | } |
||
82 |
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.