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