| Conditions | 5 |
| Paths | 4 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 30 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 61 | public function offsetSet($offset, $value) |
||
| 62 | { |
||
| 63 | if ($offset === 0 || $offset === 'key') { |
||
| 64 | $this->key = $value; |
||
| 65 | } |
||
| 66 | |||
| 67 | if ($offset === 1 || $offset === 'value') { |
||
| 68 | $this->value = $value; |
||
| 69 | } |
||
| 70 | |||
| 71 | throw new \InvalidArgumentException('$OFFSET must be either 0, 1, "key", or "value"'); |
||
| 72 | } |
||
| 73 | |||
| 82 |