Documentation

MultiConstraint extends MultiConstraint
in package
implements LinkConstraintInterface

Defines a conjunctive or disjunctive set of constraints.

Tags
deprecated

use Composer\Semver\Constraint\MultiConstraint instead

Interfaces, Classes and Traits

LinkConstraintInterface

Table of Contents

$conjunctive  : bool
$constraints  : array<string|int, ConstraintInterface>
$prettyString  : string
__construct()  : mixed
__toString()  : string
getConstraints()  : array<string|int, ConstraintInterface>
getPrettyString()  : string
isConjunctive()  : bool
isDisjunctive()  : bool
matches()  : bool
setPrettyString()  : mixed

Properties

Methods

__construct()

public __construct(array<string|int, ConstraintInterface$constraints[, bool $conjunctive = true ]) : mixed
Parameters
$constraints : array<string|int, ConstraintInterface>

A set of constraints

$conjunctive : bool = true

Whether the constraints should be treated as conjunctive or disjunctive

Return values
mixed

getPrettyString()

public getPrettyString() : string
Return values
string

isConjunctive()

public isConjunctive() : bool
Return values
bool

isDisjunctive()

public isDisjunctive() : bool
Return values
bool

setPrettyString()

public setPrettyString(string $prettyString) : mixed
Parameters
$prettyString : string
Return values
mixed

Search results