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