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