public function getCachingIterator(int $flags = CachingIterator::CALL_TOSTRING): CachingIterator
    {
        return new CachingIterator($this->getIterator(), $flags);
    }
public function getCachingIterator(int $flags = CachingIterator::CALL_TOSTRING): CachingIterator
    {
        return new CachingIterator($this->getIterator(), $flags);
    }
public function getCachingIterator ( int $ flags = CachingIterator :: CALL_TOSTRING ) : CachingIterator { return new CachingIterator ( $ this -> getIterator ( ) , $ flags ) ; }
Get a CachingIterator instance.

@param int $flags

@return CachingIterator
Get a CachingIterator instance .