| 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 | 9 | public function __construct(Container $arguments) |
|
| 17 | { |
||
| 18 | 9 | $this->arguments = $arguments |
|
| 19 | 9 | ->all() |
|
| 20 | 9 | ->reduce( |
|
| 21 | 9 | Set::of(Argument::class), |
|
| 22 | 9 | static function(Set $arguments, Definition\Argument $argument): Set { |
|
| 23 | 5 | return $arguments->add($argument->compile()); |
|
| 24 | 9 | } |
|
| 25 | ); |
||
| 26 | 9 | } |
|
| 27 | |||
| 28 | 7 | public function __toString(): string |
|
| 31 | } |
||
| 32 | } |
||
| 33 |