| 1 | <?php |
||
| 13 | class NewReplyNotification extends Notification |
||
| 14 | { |
||
| 15 | use Queueable; |
||
| 16 | |||
| 17 | private $user; |
||
| 18 | private $reply; |
||
| 19 | private $msg; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Create a new notification instance. |
||
| 23 | * |
||
| 24 | * @return void |
||
|
|
|||
| 25 | */ |
||
| 26 | public function __construct($reply, $msg=null) |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Get the notification's delivery channels. |
||
| 34 | * |
||
| 35 | * @param mixed $notifiable |
||
| 36 | * @return array |
||
| 37 | */ |
||
| 38 | public function via($notifiable) |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Get the mail representation of the notification. |
||
| 45 | * |
||
| 46 | * @param mixed $notifiable |
||
| 47 | * @return \Illuminate\Notifications\Messages\MailMessage |
||
| 48 | */ |
||
| 49 | public function toMail($notifiable) |
||
| 58 | |||
| 59 | /** |
||
| 60 | * Get the array representation of the notification. |
||
| 61 | * |
||
| 62 | * @param mixed $notifiable |
||
| 63 | * @return array |
||
| 64 | */ |
||
| 65 | public function toArray($notifiable) |
||
| 71 | } |
||
| 72 |
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.