Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
25 | 4 | public static function make( |
|
26 | Types $types, |
||
27 | array $factories, |
||
28 | ConfigurationInterface $config |
||
29 | ): MetadataBuilder { |
||
30 | 4 | $map = new Map('string', MetadataFactory::class); |
|
31 | |||
32 | 4 | foreach ($factories as $meta => $factory) { |
|
33 | 4 | $map = $map->put($meta, $factory); |
|
34 | } |
||
35 | |||
36 | 4 | return new MetadataBuilder($types, $map, $config); |
|
37 | } |
||
39 |