predicates.php
Table of Contents
Functions
- below() : callable
- Returns function checking if given value is below expected.
- above() : callable
- Returns function checking if given value is above expected.
- ofType() : callable
- Returns function that check if value is instance of given type.
Functions
below()
Returns function checking if given value is below expected.
below(float|int $expected) : callable
Parameters
- $expected : float|int
Return values
callable —above()
Returns function checking if given value is above expected.
above(float|int $expected) : callable
Parameters
- $expected : float|int
Return values
callable —ofType()
Returns function that check if value is instance of given type.
ofType(string $type) : callable
To check generic types pass:
-
int
-
float
-
bool
-
string
-
array
-
object
Parameters
- $type : string