Conditions | 3 |
Paths | 3 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
58 | 9 | public function withArgument(ArgumentDefinitionInterface ...$arguments): ProvidesArguments |
|
59 | { |
||
60 | 9 | foreach ($arguments as $argument) { |
|
61 | 9 | if ($argument instanceof Verifiable) { |
|
62 | 9 | $argument->verify(); |
|
63 | } |
||
64 | |||
65 | 9 | $this->arguments[$argument->getName()] = $argument; |
|
66 | } |
||
67 | |||
68 | 9 | return $this; |
|
69 | } |
||
70 | } |
||
71 |