1 | <?php |
||
11 | class HealthStatus extends Notification |
||
12 | { |
||
13 | use Queueable; |
||
14 | |||
15 | /** |
||
16 | * @var |
||
17 | */ |
||
18 | private $item; |
||
19 | /** |
||
20 | * @var |
||
21 | */ |
||
22 | private $channel; |
||
23 | |||
24 | /** |
||
25 | * Create a new notification instance. |
||
26 | * |
||
27 | * @param $item |
||
28 | */ |
||
29 | 1 | public function __construct($item, $channel) |
|
35 | |||
36 | /** |
||
37 | * Get sender instance. |
||
38 | * |
||
39 | * @param $name |
||
40 | * @return \Illuminate\Foundation\Application|mixed |
||
41 | */ |
||
42 | private function getSenderInstance($name) |
||
52 | |||
53 | /** |
||
54 | * Get the notification's delivery channels. |
||
55 | * |
||
56 | * @return array |
||
57 | */ |
||
58 | 1 | public function via() |
|
62 | |||
63 | /** |
||
64 | * Magic getter. |
||
65 | * |
||
66 | * @param $name |
||
67 | * @return null |
||
68 | */ |
||
69 | 1 | public function __get($name) |
|
77 | |||
78 | /** |
||
79 | * @param $name |
||
80 | * @param $parameters |
||
81 | * @return mixed |
||
82 | */ |
||
83 | public function __call($name, $parameters) |
||
92 | |||
93 | /** |
||
94 | * Create Slack message. |
||
95 | * |
||
96 | * @param $notifiable |
||
97 | * @return SlackMessage |
||
98 | */ |
||
99 | public function toSlack($notifiable) |
||
114 | |||
115 | /** |
||
116 | * Create Mail message. |
||
117 | * |
||
118 | * @param $notifiable |
||
119 | * @return MailMessage |
||
120 | */ |
||
121 | 1 | public function toMail($notifiable) |
|
131 | |||
132 | /** |
||
133 | * Get the action message. |
||
134 | * |
||
135 | * @param $item |
||
136 | * @return \Illuminate\Config\Repository|mixed |
||
137 | */ |
||
138 | 1 | private function getActionMessage($item) |
|
144 | |||
145 | /** |
||
146 | * Get the action title. |
||
147 | * |
||
148 | * @return mixed |
||
149 | */ |
||
150 | 1 | protected function getActionTitle() |
|
154 | |||
155 | /** |
||
156 | * Get failing message. |
||
157 | * |
||
158 | * @return string |
||
159 | */ |
||
160 | 1 | protected function getMessage() |
|
170 | |||
171 | /** |
||
172 | * Get the action link. |
||
173 | * |
||
174 | * @return string |
||
175 | */ |
||
176 | 1 | protected function getActionLink() |
|
180 | } |
||
181 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.