Conditions | 3 |
Paths | 3 |
Total Lines | 13 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
49 | public function toResolver(ArgumentResolverFactory $argumentResolverFactory): ArgumentResolver |
||
50 | { |
||
51 | if (count($this->body) === 1) { |
||
52 | return $this->body[0]->toResolver($argumentResolverFactory); |
||
53 | } |
||
54 | |||
55 | $arguments = []; |
||
56 | |||
57 | foreach ($this->body as $node) { |
||
58 | $arguments[] = $node->toResolver($argumentResolverFactory); |
||
59 | } |
||
60 | |||
61 | return new ConcatArgumentResolver($arguments); |
||
62 | } |
||
64 |