nt() { return current($this->container); } /** * Key of the current element. * * @link http://php.net/manual/en/iterator.key.php * * @return mixed */ #[\ReturnTypeWillChange] public function key() { return key($this->container); } /** * Move the internal point of the container array to the next item * * @link http://php.net/manual/en/iterator.next.php * * @return void */ #[\ReturnTypeWillChange] public function next() { next($this->container); } /** * Rewind the internal point of the container array. * * @link http://php.net/manual/en/iterator.rewind.php * * @return void */ #[\ReturnTypeWillChange] public function rewind() { reset($this->container); } /** * Is the current key valid? * * @link http://php.net/manual/en/iterator.rewind.php * * @return bool */ #[\ReturnTypeWillChange] public function valid() { return $this->offsetExists($this->key()); } /*****************************************************************/ /* Countable Implementation */ /*****************************************************************/ /** * Get the count of elements in the container array. * * @link http://php.net/manual/en/countable.count.php * * @return int */ #[\ReturnTypeWillChange] public function count() { return count($this->container); } }