OrCoupler
extends Coupler
in package
Represents a collection of constraints, if any are true, the collection will evaluate to true.
Tags
Table of Contents
- $constraints : mixed
- __construct() : mixed
- addConstraint() : mixed
- evaluate() : mixed
- getConstraints() : mixed
Properties
$constraints
protected
mixed
$constraints
= []
Methods
__construct()
public
__construct() : mixed
Return values
mixed —addConstraint()
public
addConstraint(Constraint $constraint) : mixed
Parameters
- $constraint : Constraint
Return values
mixed —evaluate()
public
evaluate(mixed $value) : mixed
Parameters
- $value : mixed
Return values
mixed —getConstraints()
public
getConstraints() : mixed