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

Breadcrumb

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

function GenericRule::__construct

Parameters

list<int> $literals:

Overrides Rule::__construct

File

vendor/composer/composer/src/Composer/DependencyResolver/GenericRule.php, line 26

Class

GenericRule
@author Nils Adermann <naderman@naderman.de>

Namespace

Composer\DependencyResolver

Code

public function __construct(array $literals, $reason, $reasonData) {
    parent::__construct($reason, $reasonData);
    // sort all packages ascending by id
    sort($literals);
    $this->literals = $literals;
}

API Navigation

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