abstract class NumberComparator extends Comparator (View source)

Methods

bool
__invoke(mixed $value)

Compare the input value against the comparator.

bool
check(mixed $value)

Compare the input number against the comparator.

bool
checkNumber(int|float $value)

Compare the input number against the comparator.

Details

final bool __invoke(mixed $value)

Compare the input value against the comparator.

Parameters

mixed $value

Return Value

bool

final bool check(mixed $value)

Compare the input number against the comparator.

Parameters

mixed $value

Return Value

bool

abstract protected bool checkNumber(int|float $value)

Compare the input number against the comparator.

Parameters

int|float $value

Return Value

bool