src/AbstractEnumSet.php 1 location
|
@@ 130-138 (lines=9) @@
|
127 |
|
* If no valid iterator position is found the iterator position will be the last possible + 1. |
128 |
|
* @return void |
129 |
|
*/ |
130 |
|
public function next() |
131 |
|
{ |
132 |
|
do { |
133 |
|
if (++$this->ordinal >= $this->ordinalMax) { |
134 |
|
$this->ordinal = $this->ordinalMax; |
135 |
|
return; |
136 |
|
} |
137 |
|
} while (!$this->getBit($this->ordinal)); |
138 |
|
} |
139 |
|
|
140 |
|
/** |
141 |
|
* Go to the first valid iterator position. |
src/BinaryEnumSet.php 1 location
|
@@ 112-120 (lines=9) @@
|
109 |
|
* If no valid iterator position is found the iterator position will be the last possible + 1. |
110 |
|
* @return void |
111 |
|
*/ |
112 |
|
public function next() |
113 |
|
{ |
114 |
|
do { |
115 |
|
if (++$this->ordinal >= $this->ordinalMax) { |
116 |
|
$this->ordinal = $this->ordinalMax; |
117 |
|
return; |
118 |
|
} |
119 |
|
} while (!$this->getBit($this->ordinal)); |
120 |
|
} |
121 |
|
|
122 |
|
/** |
123 |
|
* Go to the first valid iterator position. |