MultiConstraint
extends MultiConstraint
in package
implements
LinkConstraintInterface
Defines a conjunctive or disjunctive set of constraints.
Tags
Interfaces, Classes and Traits
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
$conjunctive
protected
bool
$conjunctive
$constraints
protected
array<string|int, ConstraintInterface>
$constraints
$prettyString
protected
string
$prettyString
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 —__toString()
public
__toString() : string
Return values
string —getConstraints()
public
getConstraints() : array<string|int, ConstraintInterface>
Return values
array<string|int, ConstraintInterface> —getPrettyString()
public
getPrettyString() : string
Return values
string —isConjunctive()
public
isConjunctive() : bool
Return values
bool —isDisjunctive()
public
isDisjunctive() : bool
Return values
bool —matches()
public
matches(ConstraintInterface $provider) : bool
Parameters
- $provider : ConstraintInterface
Return values
bool —setPrettyString()
public
setPrettyString(string $prettyString) : mixed
Parameters
- $prettyString : string