function RuleSetIterator::next
File
-
vendor/
composer/ composer/ src/ Composer/ DependencyResolver/ RuleSetIterator.php, line 58
Class
- RuleSetIterator
- @author Nils Adermann <naderman@naderman.de> @implements \Iterator<RuleSet::TYPE_*|-1, Rule>
Namespace
Composer\DependencyResolverCode
public function next() : void {
$this->currentOffset++;
if (!isset($this->rules[$this->currentType])) {
return;
}
if ($this->currentOffset >= \count($this->rules[$this->currentType])) {
$this->currentOffset = 0;
do {
$this->currentTypeOffset++;
if (!isset($this->types[$this->currentTypeOffset])) {
$this->currentType = -1;
break;
}
$this->currentType = $this->types[$this->currentTypeOffset];
} while (0 === \count($this->rules[$this->currentType]));
}
}