One
class One extends Comparator (View source)
Only one of the given comparators must be true. Outputs false if none or more than one is true (xor).
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