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 —dateAfter()
public
static dateAfter(string $fragment, DateTime|string $after) : SimplePredicate
Parameters
- $fragment : string
- $after : DateTime|string
Return values
SimplePredicate —dateBefore()
public
static dateBefore(string $fragment, DateTime|string $before) : SimplePredicate
Parameters
- $fragment : string
- $before : DateTime|string
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 —dayOfMonth()
public
static dayOfMonth(string $fragment, int $day) : SimplePredicate
Parameters
- $fragment : string
- $day : int
Return values
SimplePredicate —dayOfMonthAfter()
public
static dayOfMonthAfter(string $fragment, int $day) : SimplePredicate
Parameters
- $fragment : string
- $day : int
Return values
SimplePredicate —dayOfMonthBefore()
public
static dayOfMonthBefore(string $fragment, int $day) : SimplePredicate
Parameters
- $fragment : string
- $day : int
Return values
SimplePredicate —dayOfWeek()
public
static dayOfWeek(string $fragment, string|int $day) : SimplePredicate
Parameters
- $fragment : string
- $day : string|int
Return values
SimplePredicate —dayOfWeekAfter()
public
static dayOfWeekAfter(string $fragment, string|int $day) : SimplePredicate
Parameters
- $fragment : string
- $day : string|int
Return values
SimplePredicate —dayOfWeekBefore()
public
static dayOfWeekBefore(string $fragment, string|int $day) : SimplePredicate
Parameters
- $fragment : string
- $day : string|int
Return values
SimplePredicate —fulltext()
public
static fulltext(string $fragment, string $value) : SimplePredicate
Parameters
- $fragment : string
- $value : string
Return values
SimplePredicate —gt()
public
static gt(string $fragment, float $upperBound) : SimplePredicate
Parameters
- $fragment : string
- $upperBound : float
Return values
SimplePredicate —has()
public
static has(string $fragment) : SimplePredicate
Parameters
- $fragment : string
Return values
SimplePredicate —hour()
public
static hour(string $fragment, int $hour) : SimplePredicate
Parameters
- $fragment : string
- $hour : int
Return values
SimplePredicate —hourAfter()
public
static hourAfter(string $fragment, int $hour) : SimplePredicate
Parameters
- $fragment : string
- $hour : int
Return values
SimplePredicate —hourBefore()
public
static hourBefore(string $fragment, int $hour) : SimplePredicate
Parameters
- $fragment : string
- $hour : int
Return values
SimplePredicate —in()
public
static in(string $fragment, array<string|int, mixed> $values) : SimplePredicate
Parameters
- $fragment : string
- $values : array<string|int, mixed>
Return values
SimplePredicate —inRange()
public
static inRange(string $fragment, float $lowerBound, float $upperBound) : SimplePredicate
Parameters
- $fragment : string
- $lowerBound : float
- $upperBound : float
Return values
SimplePredicate —lt()
public
static lt(string $fragment, float $lowerBound) : SimplePredicate
Parameters
- $fragment : string
- $lowerBound : float
Return values
SimplePredicate —missing()
public
static missing(string $fragment) : SimplePredicate
Parameters
- $fragment : string
Return values
SimplePredicate —month()
public
static month(string $fragment, string|int $month) : SimplePredicate
Parameters
- $fragment : string
- $month : string|int
Return values
SimplePredicate —monthAfter()
public
static monthAfter(string $fragment, string|int $month) : SimplePredicate
Parameters
- $fragment : string
- $month : string|int
Return values
SimplePredicate —monthBefore()
public
static monthBefore(string $fragment, string|int $month) : SimplePredicate
Parameters
- $fragment : string
- $month : string|int
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 —similar()
public
static similar(string $documentId, int $maxResults) : SimplePredicate
Parameters
- $documentId : string
- $maxResults : int
Return values
SimplePredicate —year()
public
static year(string $fragment, int $year) : SimplePredicate
Parameters
- $fragment : string
- $year : int