| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | 18 | public function build() |
|
| 30 | { |
||
| 31 | 18 | $storage = $this->metadataStorage ?: new RuntimeStorage(); |
|
| 32 | 18 | $manager = new Manager($storage); |
|
| 33 | 18 | $registry = (new Registry()) |
|
| 34 | 18 | ->registerAccessor('array', new ArrayAccessor()) |
|
| 35 | 18 | ->registerAccessor('object', new ObjectAccessor($manager)); |
|
| 36 | 18 | return new Accessor($registry); |
|
| 37 | } |
||
| 38 | } |
||
| 39 |