| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 10 | 
| Code Lines | 6 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 7 | 
| CRAP Score | 2 | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 18 | 56 | public function __construct(stdClass $data, string ...$meanLocation) | |
| 19 |     { | ||
| 20 | 56 | $this->data = $data; | |
| 21 | 56 | $root = $this->findInDescendent($data, ...$meanLocation); | |
| 22 | 56 |         if (! $root instanceof stdClass) { | |
| 23 | 1 | throw new InvalidArgumentException( | |
| 24 | 1 |                 sprintf('Unable to find mean object at /%s', implode('/', $meanLocation)) | |
| 25 | ); | ||
| 26 | } | ||
| 27 | 56 | $this->root = $root; | |
| 28 | 56 | } | |
| 60 |