| Total Complexity | 5 |
| Total Lines | 50 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | trait ArrayAccessTrait |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * This method returns a reference to the variable to allow for indirect |
||
| 14 | * array modification (e.g., $foo['bar']['baz'] = 'qux'). |
||
| 15 | * |
||
| 16 | * @param string $offset |
||
| 17 | * |
||
| 18 | * @return mixed|null |
||
| 19 | */ |
||
| 20 | 1 | #[\ReturnTypeWillChange] |
|
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @param string $offset |
||
| 34 | * @param string|mixed $value |
||
| 35 | 1 | */ |
|
| 36 | #[\ReturnTypeWillChange] |
||
| 37 | 1 | public function offsetSet($offset, $value) |
|
| 38 | 1 | { |
|
| 39 | $this->data[$offset] = $value; |
||
|
|
|||
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @param string $offset |
||
| 44 | * |
||
| 45 | 1 | * @return bool |
|
| 46 | */ |
||
| 47 | 1 | #[\ReturnTypeWillChange] |
|
| 48 | public function offsetExists($offset) |
||
| 49 | { |
||
| 50 | return isset($this->data[$offset]); |
||
| 51 | } |
||
| 52 | |||
| 53 | 1 | /** |
|
| 54 | * @param string $offset |
||
| 55 | 1 | */ |
|
| 56 | 1 | #[\ReturnTypeWillChange] |
|
| 60 | } |
||
| 61 | } |
||
| 62 |