Conditions | 3 |
Paths | 3 |
Total Lines | 16 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
35 | public function routeNotificationFor($driver) |
||
36 | { |
||
37 | // if (method_exists($this, $method = 'routeNotificationFor'.Str::studly($driver))) { |
||
38 | // return $this->{$method}(); |
||
39 | // } |
||
40 | |||
41 | switch ($driver) { |
||
42 | // case 'database': |
||
43 | // return $this->notifications(); |
||
44 | case 'mail': |
||
45 | return $this->getNotificationEmail(); |
||
46 | case 'nexmo': |
||
47 | return $this->getNotificationPhoneNumber(); |
||
48 | } |
||
49 | |||
50 | return null; |
||
51 | } |
||
69 |