| 1 | <?php |
||
| 11 | class ResetPassword extends Notification implements ShouldQueue |
||
| 12 | { |
||
| 13 | use Queueable; |
||
| 14 | |||
| 15 | protected $token; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Create a new notification instance. |
||
| 19 | * |
||
| 20 | * @return void |
||
|
|
|||
| 21 | */ |
||
| 22 | public function __construct($token) |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Get the notification's delivery channels. |
||
| 29 | * |
||
| 30 | * @param mixed $notifiable |
||
| 31 | * @return array |
||
| 32 | */ |
||
| 33 | public function via($notifiable) |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Get the mail representation of the notification. |
||
| 40 | * |
||
| 41 | * @param mixed $notifiable |
||
| 42 | * @return \Illuminate\Notifications\Messages\MailMessage |
||
| 43 | */ |
||
| 44 | public function toMail($notifiable) |
||
| 52 | } |
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.