| Conditions | 3 |
| Paths | 3 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 3.072 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php namespace GameScan\WoW; |
||
| 13 | 2 | public function __get($name) |
|
| 14 | { |
||
| 15 | 2 | if (! isset($this->informations->{$name})) { |
|
| 16 | return null; |
||
| 17 | } |
||
| 18 | 2 | $requestedInformation = $this->informations->{$name}; |
|
| 19 | 2 | return (is_object($requestedInformation)) ? new EntityInformation($requestedInformation) : $requestedInformation; |
|
| 20 | } |
||
| 21 | } |
||
| 22 |