Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
32 | public function __get($propertyName) |
||
33 | { |
||
34 | $internalInfo = $this->__debugInfo(); |
||
35 | if (!isset($internalInfo[$propertyName])) { |
||
36 | $className = get_class($this); |
||
37 | trigger_error("Undefined property {$className}::\${$propertyName}"); |
||
38 | |||
39 | return null; |
||
40 | } |
||
41 | |||
42 | return $internalInfo[$propertyName]; |
||
43 | } |
||
44 | } |
||
45 |