| Total Complexity | 4 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | trait KeyValueArrayAccessTrait |
||
| 11 | { |
||
| 12 | public function offsetExists($offset) |
||
| 15 | } |
||
| 16 | |||
| 17 | public function offsetGet($offset) |
||
| 18 | { |
||
| 19 | return $this->get($offset); |
||
| 20 | } |
||
| 21 | |||
| 22 | public function offsetSet($offset, $value) |
||
| 25 | } |
||
| 26 | |||
| 27 | public function offsetUnset($offset) |
||
| 30 | } |
||
| 31 | |||
| 32 | abstract public function set(string $key, $value); |
||
| 33 | |||
| 34 | abstract public function delete(string $key); |
||
| 35 | |||
| 36 | abstract public function get(string $key); |
||
| 37 | |||
| 38 | abstract public function exists(string $key); |
||
| 39 | } |
||
| 40 |