1 | <?php |
||
19 | final class TokenNotification extends Notification implements ShouldQueue |
||
20 | { |
||
21 | use Queueable, Macroable; |
||
22 | |||
23 | /** |
||
24 | * The token implementation. |
||
25 | * |
||
26 | * @var TokenInterface |
||
27 | */ |
||
28 | public $token; |
||
29 | |||
30 | /** |
||
31 | * TokenGenerated constructor. |
||
32 | * |
||
33 | * @param TokenInterface $token |
||
34 | */ |
||
35 | 4 | public function __construct(TokenInterface $token) |
|
39 | |||
40 | /** |
||
41 | * Get the notification's delivery channels. |
||
42 | * |
||
43 | * @param mixed $notifiable |
||
44 | * |
||
45 | * @return array |
||
46 | */ |
||
47 | 2 | public function via($notifiable) |
|
57 | |||
58 | /** |
||
59 | * Get the mail presentation of the notification. |
||
60 | * |
||
61 | * @return MailMessage |
||
62 | */ |
||
63 | 1 | public function toMail(): MailMessage |
|
72 | |||
73 | /** |
||
74 | * Get the sms presentation of the notification. |
||
75 | * |
||
76 | * @return string |
||
77 | */ |
||
78 | 1 | public function toSms(): string |
|
84 | } |
||
85 |