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