Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. RuleSetIterator.php

function RuleSetIterator::rewind

1 call to RuleSetIterator::rewind()
RuleSetIterator::__construct in vendor/composer/composer/src/Composer/DependencyResolver/RuleSetIterator.php

File

vendor/composer/composer/src/Composer/DependencyResolver/RuleSetIterator.php, line 82

Class

RuleSetIterator
@author Nils Adermann <naderman@naderman.de> @implements \Iterator<RuleSet::TYPE_*|-1, Rule>

Namespace

Composer\DependencyResolver

Code

public function rewind() : void {
    $this->currentOffset = 0;
    $this->currentTypeOffset = -1;
    $this->currentType = -1;
    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]));
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal