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...
23
*/
24
public function __construct( iterable $iterable ) {
25
if ( $iterable instanceof Iterator ) {
26
$this->iterator = $iterable;
27
} elseif ( is_array( $iterable ) ) {
28
$this->iterator = new ArrayIterator( $iterable );
29
} else {
30
$this->iterator = new IteratorIterator( $iterable );
31
}
32
$this->iterator->rewind();
33
}
34
35
/**
36
* @see EntityIdPager::fetchIds
37
*
38
* @param int $limit
39
*
40
* @return EntityId[]
41
*/
42
public function fetchIds( $limit ) {
43
$ids = [];
44
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.