Any
class Any extends Comparator (View source)
Requires the output of at least one comparator to be true.
Traits
Methods
bool
check(mixed $value)
Compare the input value against the comparator.
static HasMultipleComparators
make(callable|bool ...$comparators)
No description
static HasMultipleComparators
makeFromArray(array $comparators)
No description
with(callable|bool ...$comparators)
No description
Details
__construct(callable|bool ...$comparators)
No description
final bool
__invoke(mixed $value)
Compare the input value against the comparator.
bool
check(mixed $value)
Compare the input value against the comparator.
static HasMultipleComparators
make(callable|bool ...$comparators)
No description
static HasMultipleComparators
makeFromArray(array $comparators)
No description
protected ComparatorInterface
resolveComparator(mixed $comparator)
No description
protected array
resolveComparators(array $comparators)
No description
HasMultipleComparators
with(callable|bool ...$comparators)
No description