21 $this->data_factory = $data_factory;
An exception for terminatinating execution or to throw for unit testing.
isInt()
Get a constraint for an integer.
parallel(array $others)
Get a constraint that checks the supplied constraints in parallel.
not(Constraint $other)
Get a negated constraint.
__construct(Data\Factory $data_factory)
custom(callable $is_ok, $error)
Get a custom constraint.
lessThan($max)
Get the constraint that some value is smaller then $max.
sequential(array $others)
Get a constraint that sequentially checks the supplied constraints.
greaterThan($min)
Get the constraint that some value is larger than $min.
A constraint encodes some resrtictions on values.