Condition
in package
Table of Contents
Methods
- contains() : bool
- Contains substring in string
- dateEqual() : bool
- Dates equal
- endWith() : bool
- End with
- equal() : bool
- Simple equals
- greaterThan() : bool
- Strict greater than
- greaterThanOrEqual() : bool
- Greater or equal
- in() : bool
- In array
- isNotNull() : bool
- Is not null equal
- isNull() : bool
- Is null equal
- lessThan() : bool
- Strict less than
- lessThanOrEqual() : bool
- Less or equal
- match() : bool
- Match with pattern
- monthEqual() : bool
- Months equal
- notEqual() : bool
- Simple not equal
- notIn() : bool
- Not in array
- startWith() : bool
- Start With
- strictEqual() : bool
- Strict equals
- strictNotEqual() : bool
- Strict not equal
- yearEqual() : bool
- Years equal
Methods
contains()
Contains substring in string
public
static contains(string $value, string $comparable) : bool
Parameters
- $value : string
- $comparable : string
Return values
booldateEqual()
Dates equal
public
static dateEqual(string $value, string $comparable[, mixed $format = 'Y-m-d' ]) : bool
Parameters
- $value : string
- $comparable : string
- $format : mixed = 'Y-m-d'
Return values
boolendWith()
End with
public
static endWith(mixed $value, string $comparable) : bool
Parameters
- $value : mixed
- $comparable : string
Return values
boolequal()
Simple equals
public
static equal(mixed $value, mixed $comparable) : bool
Parameters
- $value : mixed
- $comparable : mixed
Return values
boolgreaterThan()
Strict greater than
public
static greaterThan(mixed $value, mixed $comparable) : bool
Parameters
- $value : mixed
- $comparable : mixed
Return values
boolgreaterThanOrEqual()
Greater or equal
public
static greaterThanOrEqual(mixed $value, mixed $comparable) : bool
Parameters
- $value : mixed
- $comparable : mixed
Return values
boolin()
In array
public
static in(mixed $value, array<string|int, mixed> $comparable) : bool
Parameters
- $value : mixed
- $comparable : array<string|int, mixed>
Return values
boolisNotNull()
Is not null equal
public
static isNotNull(mixed $value, mixed $comparable) : bool
Parameters
- $value : mixed
- $comparable : mixed
Return values
boolisNull()
Is null equal
public
static isNull(mixed $value, mixed $comparable) : bool
Parameters
- $value : mixed
- $comparable : mixed
Return values
boollessThan()
Strict less than
public
static lessThan(mixed $value, mixed $comparable) : bool
Parameters
- $value : mixed
- $comparable : mixed
Return values
boollessThanOrEqual()
Less or equal
public
static lessThanOrEqual(mixed $value, mixed $comparable) : bool
Parameters
- $value : mixed
- $comparable : mixed
Return values
boolmatch()
Match with pattern
public
static match(mixed $value, string $comparable) : bool
Parameters
- $value : mixed
- $comparable : string
Return values
boolmonthEqual()
Months equal
public
static monthEqual(string $value, string $comparable) : bool
Parameters
- $value : string
- $comparable : string
Return values
boolnotEqual()
Simple not equal
public
static notEqual(mixed $value, mixed $comparable) : bool
Parameters
- $value : mixed
- $comparable : mixed
Return values
boolnotIn()
Not in array
public
static notIn(mixed $value, array<string|int, mixed> $comparable) : bool
Parameters
- $value : mixed
- $comparable : array<string|int, mixed>
Return values
boolstartWith()
Start With
public
static startWith(mixed $value, string $comparable) : bool
Parameters
- $value : mixed
- $comparable : string
Return values
boolstrictEqual()
Strict equals
public
static strictEqual(mixed $value, mixed $comparable) : bool
Parameters
- $value : mixed
- $comparable : mixed
Return values
boolstrictNotEqual()
Strict not equal
public
static strictNotEqual(mixed $value, mixed $comparable) : bool
Parameters
- $value : mixed
- $comparable : mixed
Return values
boolyearEqual()
Years equal
public
static yearEqual(string $value, string $comparable) : bool
Parameters
- $value : string
- $comparable : string