Defines a conjunctive or disjunctive set of constraints.
CloneableInstantiable
| Methods |
public __construct(array $constraints, $conjunctive = true)
|
| public __toString() : string |
| public compile( $otherOperator) |
| public static create(array $constraints, $conjunctive = true) Tries to optimize the constraints as much as possible, meaning reducing/collapsing congruent constraints etc. Does not necessarily return a MultiConstraint instance if things can be reduced to a simple constraint
|
public getConstraints()
|
| public getLowerBound() |
| public getPrettyString() |
| public getUpperBound() |
public isConjunctive()
|
public isDisjunctive()
|
public matches(Composer
|
| public setPrettyString( $prettyString) |
| Properties |
protected $conjunctive = NULL
|
protected $constraints = NULL
|
protected $lowerBound = NULL
|
protected $prettyString = NULL
|
protected $string = NULL
|
protected $upperBound = NULL
|
| Methods |
private extractBounds()
|
private static optimizeConstraints(array $constraints, $conjunctive)
|
| Methods |
| public static create(array $constraints, $conjunctive = true) Tries to optimize the constraints as much as possible, meaning reducing/collapsing congruent constraints etc. Does not necessarily return a MultiConstraint instance if things can be reduced to a simple constraint
|
private static optimizeConstraints(array $constraints, $conjunctive)
|