Documentation

Predicates
in package

A set of helpers to build predicates

Table of Contents

any()  : SimplePredicate
at()  : SimplePredicate
dateAfter()  : SimplePredicate
dateBefore()  : SimplePredicate
dateBetween()  : SimplePredicate
dayOfMonth()  : SimplePredicate
dayOfMonthAfter()  : SimplePredicate
dayOfMonthBefore()  : SimplePredicate
dayOfWeek()  : SimplePredicate
dayOfWeekAfter()  : SimplePredicate
dayOfWeekBefore()  : SimplePredicate
fulltext()  : SimplePredicate
gt()  : SimplePredicate
has()  : SimplePredicate
hour()  : SimplePredicate
hourAfter()  : SimplePredicate
hourBefore()  : SimplePredicate
in()  : SimplePredicate
inRange()  : SimplePredicate
lt()  : SimplePredicate
missing()  : SimplePredicate
month()  : SimplePredicate
monthAfter()  : SimplePredicate
monthBefore()  : SimplePredicate
near()  : SimplePredicate
not()  : SimplePredicate
similar()  : SimplePredicate
year()  : SimplePredicate

Methods

any()

public static any(string $fragment, string|array<string|int, mixed> $values) : SimplePredicate
Parameters
$fragment : string
$values : string|array<string|int, mixed>
Return values
SimplePredicate

at()

public static at(string $fragment, string|array<string|int, mixed> $value) : SimplePredicate
Parameters
$fragment : string
$value : string|array<string|int, mixed>
Return values
SimplePredicate

dateBetween()

public static dateBetween(string $fragment, DateTime|string $before, DateTime|string $after) : SimplePredicate
Parameters
$fragment : string
$before : DateTime|string
$after : DateTime|string
Return values
SimplePredicate

inRange()

public static inRange(string $fragment, float $lowerBound, float $upperBound) : SimplePredicate
Parameters
$fragment : string
$lowerBound : float
$upperBound : float
Return values
SimplePredicate

near()

public static near(string $fragment, float $latitude, float $longitude, float $radius) : SimplePredicate
Parameters
$fragment : string
$latitude : float
$longitude : float
$radius : float
Return values
SimplePredicate

not()

public static not(string $fragment, string|array<string|int, mixed>|float|DateTime $value) : SimplePredicate
Parameters
$fragment : string
$value : string|array<string|int, mixed>|float|DateTime
Return values
SimplePredicate

Search results