class All extends Comparator (View source)

Requires the output of every comparator to be true.

Traits

Methods

__construct(callable|bool ...$comparators)

No description

bool
__invoke(mixed $value)

Compare the input value against the comparator.

bool
check(mixed $value)

Compare the input value against the comparator.

make(callable|bool ...$comparators)

No description

makeFromArray(array $comparators)

No description

resolveComparator(mixed $comparator)

No description

array
resolveComparators(array $comparators)

No description

with(callable|bool ...$comparators)

No description

Details

__construct(callable|bool ...$comparators)

No description

Parameters

callable|bool ...$comparators

A list of comparators to use

final bool __invoke(mixed $value)

Compare the input value against the comparator.

Parameters

mixed $value

Return Value

bool

bool check(mixed $value)

Compare the input value against the comparator.

Parameters

mixed $value

Return Value

bool

static HasMultipleComparators make(callable|bool ...$comparators)

No description

Parameters

callable|bool ...$comparators

A list of comparators to use

Return Value

HasMultipleComparators

static HasMultipleComparators makeFromArray(array $comparators)

No description

Parameters

array $comparators

A list of comparators to use

Return Value

HasMultipleComparators

protected ComparatorInterface resolveComparator(mixed $comparator)

No description

Parameters

mixed $comparator

Return Value

ComparatorInterface

protected array resolveComparators(array $comparators)

No description

Parameters

array $comparators

Return Value

array

HasMultipleComparators with(callable|bool ...$comparators)

No description

Parameters

callable|bool ...$comparators

A list of comparators to add

Return Value

HasMultipleComparators