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

Breadcrumb

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

function RuleSetIterator::__construct

Parameters

array<RuleSet::TYPE_*, Rule[]> $rules:

File

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

Class

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

Namespace

Composer\DependencyResolver

Code

public function __construct(array $rules) {
    $this->rules = $rules;
    $this->types = array_keys($rules);
    sort($this->types);
    $this->rewind();
}

API Navigation

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