| Conditions | 4 |
| Paths | 4 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 34 | public function setInput($input, string $key = null): void |
||
| 35 | { |
||
| 36 | if (is_null($key)) { |
||
| 37 | Assert::isArray($input); |
||
| 38 | |||
| 39 | foreach ($input as $key => $value) { |
||
| 40 | $this->addInput($key, $value); |
||
| 41 | } |
||
| 42 | } elseif (array_key_exists($key, $this->testData)) { |
||
| 43 | $this->testData[$key] = $input; |
||
| 44 | } else { |
||
| 45 | $this->addInput($key, $input); |
||
| 46 | } |
||
| 88 |