Between
extends AbstractPredicate
in package
Between predicate class
Tags
Table of Contents
Properties
- $conjunction : string
- Conjunction
- $format : string|null
- Format
- $values : mixed
- Values
Methods
- __construct() : mixed
- Constructor
- getConjunction() : string
- Get the conjunction
- getFormat() : string
- Get the format
- getValues() : mixed
- Get the values
- render() : string
- Render the predicate string
- setConjunction() : AbstractPredicate
- Get the conjunction
- setValues() : AbstractPredicate
- Set values
Properties
$conjunction
Conjunction
protected
string
$conjunction
= 'AND'
$format
Format
protected
string|null
$format
= null
$values
Values
protected
mixed
$values
= null
Methods
__construct()
Constructor
public
__construct(array<string|int, mixed> $values[, string $conjunction = 'AND' ]) : mixed
Instantiate the BETWEEN predicate set object
Parameters
- $values : array<string|int, mixed>
- $conjunction : string = 'AND'
Tags
getConjunction()
Get the conjunction
public
getConjunction() : string
Return values
stringgetFormat()
Get the format
public
getFormat() : string
Return values
stringgetValues()
Get the values
public
getValues() : mixed
render()
Render the predicate string
public
render(AbstractSql $sql) : string
Parameters
- $sql : AbstractSql
Tags
Return values
stringsetConjunction()
Get the conjunction
public
setConjunction(string $conjunction) : AbstractPredicate
Parameters
- $conjunction : string
Tags
Return values
AbstractPredicatesetValues()
Set values
public
setValues(mixed $values) : AbstractPredicate
Parameters
- $values : mixed