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

Breadcrumb

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

function Rule::__construct

@phpstan-param ReasonData $reasonData

Parameters

self::RULE_* $reason A RULE_* constant describing the reason for generating this rule:

mixed $reasonData:

6 calls to Rule::__construct()
GenericRule::__construct in vendor/composer/composer/src/Composer/DependencyResolver/GenericRule.php
GenericRule::__construct in vendor/composer/composer/src/Composer/DependencyResolver/GenericRule.php
MultiConflictRule::__construct in vendor/composer/composer/src/Composer/DependencyResolver/MultiConflictRule.php
MultiConflictRule::__construct in vendor/composer/composer/src/Composer/DependencyResolver/MultiConflictRule.php
Rule2Literals::__construct in vendor/composer/composer/src/Composer/DependencyResolver/Rule2Literals.php
@phpstan-param ReasonData $reasonData

... See full list

3 methods override Rule::__construct()
GenericRule::__construct in vendor/composer/composer/src/Composer/DependencyResolver/GenericRule.php
MultiConflictRule::__construct in vendor/composer/composer/src/Composer/DependencyResolver/MultiConflictRule.php
Rule2Literals::__construct in vendor/composer/composer/src/Composer/DependencyResolver/Rule2Literals.php
@phpstan-param ReasonData $reasonData

File

vendor/composer/composer/src/Composer/DependencyResolver/Rule.php, line 62

Class

Rule
@author Nils Adermann <naderman@naderman.de> @author Ruben Gonzalez <rubenrua@gmail.com> @phpstan-type ReasonData Link|BasePackage|string|int|array{packageName: string, constraint: ConstraintInterface}|array{package: BasePackage}

Namespace

Composer\DependencyResolver

Code

public function __construct($reason, $reasonData) {
    $this->reasonData = $reasonData;
    $this->bitfield = 0 << self::BITFIELD_DISABLED | $reason << self::BITFIELD_REASON | 255 << self::BITFIELD_TYPE;
}

API Navigation

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