Conditions | 3 |
Paths | 3 |
Total Lines | 14 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
30 | 1 | public function resolve($container) |
|
31 | { |
||
32 | 1 | if (!$this->supports($container)) { |
|
33 | 1 | throw new LinkResolutionException('Link type not supported'); |
|
34 | } |
||
35 | |||
36 | /** @var ContainerLinkInterface $container */ |
||
37 | 1 | $result = []; |
|
38 | 1 | foreach ($container as $link) { |
|
39 | 1 | $result = array_merge($result, $this->matchResolver($link)->resolve($link)); |
|
40 | 1 | } |
|
41 | |||
42 | 1 | return $result; |
|
43 | } |
||
44 | |||
67 |