private function storeCurrentItem() : void
    {
        $key = $this->iterator->key();

        if ($key === null) {
            return;
        }

        $this->items[$key] = $this->iterator->current();
    }
private function storeCurrentItem() : void
    {
        $key = $this->iterator->key();

        if ($key === null) {
            return;
        }

        $this->items[$key] = $this->iterator->current();
    }
private function storeCurrentItem ( ) : void { $ key = $ this -> iterator -> key ( ) ; if ( $ key === null ) { return ; } $ this -> items [ $ key ] = $ this -> iterator -> current ( ) ; }
Stores the current item in the cache.
Stores the current item in the cache .