* An offset to check for. *
* The return value will be casted to boolean if non-boolean was returned. * @since 5.0.0 */ public function offsetExists($offset) { return array_key_exists($offset, $this->data); } #[\ReturnTypeWillChange] /** * Offset to retrieve * @link https://php.net/manual/en/arrayaccess.offsetget.php * @param mixed $offset
* The offset to retrieve. *
* The offset to assign the value to. *
* The value to set. *
* The offset to unset. *
* The return value is cast to an integer. * @since 5.1.0 */ public function count() { return count($this->data); } #[\ReturnTypeWillChange] /** * Retrieve an external iterator * @link https://php.net/manual/en/iteratoraggregate.getiterator.php * @return Traversable An instance of an object implementing Iterator or * Traversable * @since 5.0.0 */ public function getIterator() { return new \ArrayIterator($this->data); } }