OuterIterator::getInnerIterator

(PHP 5 >= 5.1.0)

OuterIterator::getInnerIteratorReturns the inner iterator for the current entry.

Description

public Iterator OuterIterator::getInnerIterator ( void )

Returns the inner iterator for the current iterator entry.

Parameters

This function has no parameters.

Return Values

The inner iterator for the current entry.

Коментарии

Автор:
The return type is merely documented here, it's not actually enforced. For instance, the IteratorIterator implementation can return Traversable, which would break the interface. Most likely, this is for backwards compatibility with code written before return type hints existed. It's still possible to create your own namespaced OuterIterator interface that extends the global one and add a typehint for this method in there.
2019-08-07 15:49:23
http://php5.kiev.ua/manual/ru/outeriterator.getinneriterator.html

    Поддержать сайт на родительском проекте КГБ