class Not extends Comparator (View source)

Inverts the result of a mutator.

Traits

Methods

__construct(callable|bool $comparator)

No description

bool
__invoke(mixed $value)

Compare the input value against the comparator.

bool
check(mixed $value)

Compare the input value against the comparator.

static Not
make(callable|bool $comparator)

No description

resolveComparator(mixed $comparator)

No description

array
resolveComparators(array $comparators)

No description

Details

__construct(callable|bool $comparator)

No description

Parameters

callable|bool $comparator

A comparator or a boolean value to invert

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 Not make(callable|bool $comparator)

No description

Parameters

callable|bool $comparator

A comparator or a boolean value to invert

Return Value

Not

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