Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\RangeTraversable Class Reference

Lazy and potentially infinite version of PHPs native range() function (without $step support). More...

+ Inheritance diagram for Wikibase\Repo\RangeTraversable:
+ Collaboration diagram for Wikibase\Repo\RangeTraversable:

Public Member Functions

 __construct ( $startingNumber=1, $inclusiveUpperBound=null)
 
 getIterator ()
 

Private Attributes

 $startingNumber
 
 $inclusiveUpperBound
 

Detailed Description

Lazy and potentially infinite version of PHPs native range() function (without $step support).

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\RangeTraversable::__construct (   $startingNumber = 1,
  $inclusiveUpperBound = null 
)
Parameters
int$startingNumber
int | null$inclusiveUpperBound

Member Function Documentation

◆ getIterator()

Wikibase\Repo\RangeTraversable::getIterator ( )

Member Data Documentation

◆ $inclusiveUpperBound

Wikibase\Repo\RangeTraversable::$inclusiveUpperBound
private

◆ $startingNumber

Wikibase\Repo\RangeTraversable::$startingNumber
private

The documentation for this class was generated from the following file: