OuterIterator::getInnerIterator
(PHP 5 >= 5.1.0, PHP 7, PHP 8)
OuterIterator::getInnerIterator — 現在のエントリの内部イテレータを返す
パラメータ
この関数にはパラメータはありません。
戻り値
現在のエントリの内部イテレータが存在する場合、それを返します。
存在しない場合、null
を返します。
+add a note
User Contributed Notes 1 note
Sjakie Pruts ¶
5 years ago
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.
↑ and ↓ to navigate •
Enter to select •
Esc to close
Press Enter without
selection to search using Google