You are here

public function MultiConstraint::__construct in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/composer/semver/src/Constraint/MultiConstraint.php \Composer\Semver\Constraint\MultiConstraint::__construct()

Parameters

ConstraintInterface[] $constraints A set of constraints:

bool $conjunctive Whether the constraints should be treated as conjunctive or disjunctive:

File

vendor/composer/semver/src/Constraint/MultiConstraint.php, line 32

Class

MultiConstraint
Defines a conjunctive or disjunctive set of constraints.

Namespace

Composer\Semver\Constraint

Code

public function __construct(array $constraints, $conjunctive = true) {
  $this->constraints = $constraints;
  $this->conjunctive = $conjunctive;
}