| Conditions | 4 |
| Paths | 4 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 26 | public function setInput($input, string $key = null): void |
||
| 27 | { |
||
| 28 | if (is_null($key)) { |
||
| 29 | assert(is_array($input)); |
||
| 30 | foreach ($input as $key => $value) { |
||
| 31 | $this->addInput($key, $value); |
||
| 32 | } |
||
| 33 | } elseif (array_key_exists($key, $this->testData)) { |
||
| 34 | $this->testData[$key] = $input; |
||
| 35 | } else { |
||
| 36 | $this->addInput($key, $input); |
||
| 37 | } |
||
| 77 |