|
|
|
@ -57,6 +57,18 @@ class ImmutableArrayClass implements IteratorAggregate, JsonSerializable, Serial
|
|
|
|
|
public function __invoke ($offset) {
|
|
|
|
|
return $this->get($offset);
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* Set information to dump
|
|
|
|
|
*
|
|
|
|
|
* @return array The information to dump
|
|
|
|
|
*
|
|
|
|
|
* @see https://www.php.net/manual/function.var-dump.php
|
|
|
|
|
*/
|
|
|
|
|
public function __debugInfo (): array {
|
|
|
|
|
return [
|
|
|
|
|
'array' => $this->array,
|
|
|
|
|
];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Check if a cell offset exists
|
|
|
|
|