| 1 | <?php namespace JobApis\JobsToMail\Notifications; |
||
| 9 | class ConfirmationTokenGenerated extends Notification implements ShouldQueue |
||
| 10 | { |
||
| 11 | use Queueable; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @var Token |
||
| 15 | */ |
||
| 16 | protected $token; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Create a new notification instance. |
||
| 20 | * |
||
| 21 | * @param Token $token |
||
| 22 | * |
||
| 23 | * @return void |
||
|
|
|||
| 24 | */ |
||
| 25 | 5 | public function __construct(Token $token) |
|
| 29 | |||
| 30 | /** |
||
| 31 | * Get the notification's delivery channels. |
||
| 32 | * |
||
| 33 | * @param mixed $notifiable |
||
| 34 | * @return array |
||
| 35 | */ |
||
| 36 | 1 | public function via($notifiable) |
|
| 40 | |||
| 41 | /** |
||
| 42 | * Get the mail representation of the notification. |
||
| 43 | * |
||
| 44 | * @param mixed $notifiable |
||
| 45 | * @return \Illuminate\Notifications\Messages\MailMessage |
||
| 46 | */ |
||
| 47 | 1 | public function toMail($notifiable) |
|
| 59 | } |
||
| 60 |
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.