1 | <?php |
||
16 | class ServiceDied extends Notification implements ShouldQueue |
||
17 | { |
||
18 | use Queueable; |
||
19 | |||
20 | protected $_business = null; |
||
21 | |||
22 | /** |
||
23 | * Create a new notification instance. |
||
24 | * |
||
25 | * @param $businessToken |
||
26 | * @return void |
||
|
|||
27 | */ |
||
28 | public function __construct($business) |
||
32 | |||
33 | /** |
||
34 | * Get the notification's delivery channels. |
||
35 | * |
||
36 | * @param mixed $notifiable |
||
37 | * @return array |
||
38 | */ |
||
39 | public function via($notifiable) |
||
43 | |||
44 | /** |
||
45 | * Get the mail representation of the notification. |
||
46 | * |
||
47 | * @param mixed $notifiable |
||
48 | * @return \Illuminate\Notifications\Messages\MailMessage |
||
49 | */ |
||
50 | public function toSms($notifiable) |
||
71 | |||
72 | /** |
||
73 | * Get the array representation of the notification. |
||
74 | * |
||
75 | * @param mixed $notifiable |
||
76 | * @return array |
||
77 | */ |
||
78 | public function toArray($notifiable) |
||
84 | } |
Adding a
@return
annotation 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.