| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 30 | public function __call(string $name, $arguments = null) |
||
| 31 | { |
||
| 32 | if (false !== $pos = strpos($name, 'set')) { |
||
| 33 | $name = strtolower(substr($name, $pos + 3)); |
||
| 34 | $this->{$name} = $arguments[0]; |
||
| 35 | |||
| 36 | return $this; |
||
| 37 | } |
||
| 38 | |||
| 39 | if (false !== $pos = strpos($name, 'get')) { |
||
| 40 | $name = strtolower(substr($name, $pos + 3)); |
||
| 41 | |||
| 42 | return $this->{$name}; |
||
| 43 | } |
||
| 46 |