Conditions | 3 |
Paths | 3 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | public function __call($name, $arguments) |
||
18 | { |
||
19 | $client = $this->_clientService->getCurrentClient(); |
||
20 | |||
21 | $method = "get$name"; |
||
22 | if (method_exists($client, $method)) { |
||
23 | return $client->$method(); |
||
24 | } |
||
25 | $method = "is$name"; |
||
26 | if (method_exists($client, $method)) { |
||
27 | return $client->$method(); |
||
28 | } |
||
29 | |||
30 | throw new \Exception("Unknown Settings function / variable: {$name}!"); |
||
31 | } |
||
39 |