Total Complexity | 2 |
Total Lines | 19 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
12 | final class Arguments |
||
13 | { |
||
14 | private $arguments; |
||
15 | |||
16 | 7 | public function __construct(Container $arguments) |
|
17 | { |
||
18 | 7 | $this->arguments = $arguments |
|
19 | 7 | ->all() |
|
20 | 7 | ->reduce( |
|
21 | 7 | Set::of(Argument::class), |
|
22 | 7 | static function(Set $arguments, Definition\Argument $argument): Set { |
|
23 | 3 | return $arguments->add($argument->compile()); |
|
24 | 7 | } |
|
25 | ); |
||
26 | 7 | } |
|
27 | |||
28 | 5 | public function __toString(): string |
|
31 | } |
||
32 | } |
||
33 |