IsOdd
class IsOdd extends NumberComparator (View source)
Checks if a number is odd.
Traits
Methods
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.
final bool
check(mixed $value)
Compare the input number against the comparator.
protected bool
checkNumber(int|float $value)
Compare the input number against the comparator.
in
Makes at line 12
static Makes
make()
Create a new instance of the class.