| Conditions | 3 |
| Paths | 3 |
| Total Lines | 17 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | public function __call($method, $args) |
||
| 15 | { |
||
| 16 | $data = false; |
||
| 17 | switch (substr($method, 0, 3)) { |
||
| 18 | case 'get': |
||
| 19 | $get = substr($method, 3); |
||
| 20 | $data = $this->$get; |
||
| 21 | break; |
||
| 22 | case 'set': |
||
| 23 | $set = substr($method, 3); |
||
| 24 | $data = $args[0]; |
||
| 25 | $this->$set = $data; |
||
| 26 | break; |
||
| 27 | } |
||
| 28 | |||
| 29 | return $data; |
||
| 30 | } |
||
| 31 | } |
||
| 32 |