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