LogicalOr deprecated
class LogicalOr extends Constraint (View source)
deprecated
Performs a logical disjunction of two other constraints.
To satisfy the Or constraint, the tuple must either: satisfy constraint1 but not constraint2, or satisfy constraint2 but not constraint1, or satisfy both constraint1 and constraint2.
Properties
protected Constraint | $constraint1 | ||
protected Constraint | $constraint2 |
Methods
Details
__construct(Constraint $constraint1, Constraint $constraint2)
No description
Constraint
getConstraint1()
Gets the first constraint.
Constraint
getConstraint2()
Gets the second constraint.