| Total Complexity | 6 | 
| Total Lines | 58 | 
| Duplicated Lines | 0 % | 
| Coverage | 100% | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 16 | abstract class AbstractChain implements ArrayAccess, IteratorAggregate, JsonSerializable | ||
| 17 | { | ||
| 18 | /** | ||
| 19 | * @var array | ||
| 20 | */ | ||
| 21 | public $array = []; | ||
| 22 | |||
| 23 | /** | ||
| 24 | * @return ArrayIterator | ||
| 25 | */ | ||
| 26 | 1 | public function getIterator(): ArrayIterator | |
| 29 | } | ||
| 30 | |||
| 31 | /** | ||
| 32 | * @param mixed $offset | ||
| 33 | * | ||
| 34 | * @return bool | ||
| 35 | */ | ||
| 36 | 1 | public function offsetExists($offset): bool | |
| 37 |     { | ||
| 38 | 1 | return isset($this->array[$offset]); | |
| 39 | } | ||
| 40 | |||
| 41 | /** | ||
| 42 | * @param mixed $offset | ||
| 43 | * | ||
| 44 | * @return mixed | ||
| 45 | */ | ||
| 46 | 1 | public function offsetGet($offset) | |
| 49 | } | ||
| 50 | |||
| 51 | /** | ||
| 52 | * @param mixed $offset | ||
| 53 | * @param mixed $value | ||
| 54 | */ | ||
| 55 | 1 | public function offsetSet($offset, $value): void | |
| 56 |     { | ||
| 57 | 1 | $this->array[$offset] = $value; | |
| 58 | 1 | } | |
| 59 | |||
| 60 | /** | ||
| 61 | * @param mixed $offset | ||
| 62 | */ | ||
| 63 | 1 | public function offsetUnset($offset): void | |
| 66 | 1 | } | |
| 67 | |||
| 68 | /** | ||
| 69 | * @return array | ||
| 70 | */ | ||
| 71 | 1 | public function jsonSerialize(): array | |
| 76 |