| Total Complexity | 9 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 6 | class Notifiable extends \Spatie\ServerMonitor\Notifications\Notifiable |
||
| 7 | { |
||
| 8 | public function routeNotificationForMail(): ?array |
||
| 9 | { |
||
| 10 | if($notification = $this->getSpecificConfiguration('mail')) { |
||
| 11 | return $notification; |
||
| 12 | } |
||
| 13 | return parent::routeNotificationForMail(); |
||
| 14 | } |
||
| 15 | |||
| 16 | public function routeNotificationForSlack(): ?string |
||
| 17 | { |
||
| 18 | if($notification = $this->getSpecificConfiguration('slack')) { |
||
| 19 | return $notification; |
||
| 20 | } |
||
| 21 | return parent::routeNotificationForSlack(); |
||
| 22 | } |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @return \Spatie\ServerMonitor\Models\Host |
||
| 26 | */ |
||
| 27 | protected function getHost() { |
||
| 29 | } |
||
| 30 | |||
| 31 | private function getSpecificConfiguration($type) { |
||
| 44 | } |
||
| 45 | } |
||
| 46 |