| Conditions | 5 |
| Paths | 6 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 5 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | 16 | public function __get($name) |
|
| 16 | { |
||
| 17 | 16 | $property = ($this->class) ? $this->class->$name : null; |
|
| 18 | 16 | if (is_object($property) || is_null($property)) { |
|
| 19 | 15 | if (!isset($this->clone[$name])) { |
|
| 20 | 1 | $this->clone[$name] = new BPClone($property); |
|
| 21 | 1 | } |
|
| 22 | |||
| 23 | 15 | return $this->clone[$name]; |
|
| 24 | } |
||
| 25 | |||
| 26 | 12 | return $property; |
|
| 27 | } |
||
| 28 | |||
| 34 |