The doc-type iterable<EntityId> could not be parsed: Expected "|" or "end of type", but got "<" at position 8. (view supported doc-types)
This check marks PHPDoc comments that could not be parsed by our parser. To see
which comment annotations we can parse, please refer to our documentation on
supported doc-types.
Loading history...
24
*/
25
public function __construct( iterable $iterable ) {
26
if ( $iterable instanceof Iterator ) {
27
$this->iterator = $iterable;
28
} elseif ( is_array( $iterable ) ) {
29
$this->iterator = new ArrayIterator( $iterable );
30
} else {
31
$this->iterator = new IteratorIterator( $iterable );
32
}
33
$this->iterator->rewind();
34
}
35
36
/**
37
* @see EntityIdPager::fetchIds
38
*
39
* @param int $limit
40
*
41
* @return EntityId[]
42
*/
43
public function fetchIds( $limit ) {
44
$ids = [];
45
while ( $limit-- > 0 && $this->iterator->valid() ) {
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.