| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 37 | protected function setArgs(array $arguments) |
||
| 38 | { |
||
| 39 | invariant( |
||
| 40 | isAssocArray($arguments), |
||
| 41 | 'Args must be an associative array with argument names as keys.' |
||
| 42 | ); |
||
| 43 | |||
| 44 | foreach ($arguments as $argName => $argConfig) { |
||
| 45 | $this->_arguments[] = new Argument(array_merge($argConfig, ['name' => $argName])); |
||
|
|
|||
| 46 | } |
||
| 47 | |||
| 48 | return $this; |
||
| 49 | } |
||
| 51 |