| 1 | <?php |
||
| 8 | class AdminResetPassword extends Notification |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * The password reset token. |
||
| 12 | * |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | public $token; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Create a notification instance. |
||
| 19 | * |
||
| 20 | * @param string $token |
||
| 21 | * @return void |
||
|
|
|||
| 22 | */ |
||
| 23 | public function __construct($token) |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Get the notification's channels. |
||
| 30 | * |
||
| 31 | * @param mixed $notifiable |
||
| 32 | * @return array|string |
||
| 33 | */ |
||
| 34 | public function via($notifiable) |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Build the mail representation of the notification. |
||
| 41 | * |
||
| 42 | * @param mixed $notifiable |
||
| 43 | * @return \Illuminate\Notifications\Messages\MailMessage |
||
| 44 | */ |
||
| 45 | public function toMail($notifiable) |
||
| 52 | } |
||
| 53 |
Adding a
@returnannotation 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.