Documentation

SqlValueVisitor extends ExpressionVisitor
in package

Extract the values from a criteria/expression

Table of Contents

Properties

$types  : array<string|int, array<string|int, mixed>>
$values  : array<string|int, mixed>

Methods

dispatch()  : mixed
Dispatches walking an expression to the appropriate handler.
getParamsAndTypes()  : array<string|int, array<string|int, mixed>>
Returns the Parameters and Types necessary for matching the last visited expression.
walkComparison()  : mixed
Converts a comparison expression into the target query language output.
walkCompositeExpression()  : mixed
Converts a composite expression into the target query language output.
walkValue()  : mixed
Converts a value expression into the target query language part.
getValueFromComparison()  : mixed
Returns the value from a Comparison. In case of a CONTAINS comparison, the value is wrapped in %-signs, because it will be used in a LIKE clause.

Properties

$types

private array<string|int, array<string|int, mixed>> $types = []

Methods

getParamsAndTypes()

Returns the Parameters and Types necessary for matching the last visited expression.

public getParamsAndTypes() : array<string|int, array<string|int, mixed>>
Tags
psalm-return

array{0: array, 1: array<array>}

Return values
array<string|int, array<string|int, mixed>>

walkComparison()

Converts a comparison expression into the target query language output.

public walkComparison(Comparison $comparison) : mixed
Parameters
$comparison : Comparison

walkValue()

Converts a value expression into the target query language part.

public walkValue(Value $value) : mixed
Parameters
$value : Value

getValueFromComparison()

Returns the value from a Comparison. In case of a CONTAINS comparison, the value is wrapped in %-signs, because it will be used in a LIKE clause.

protected getValueFromComparison(Comparison $comparison) : mixed
Parameters
$comparison : Comparison

        
On this page

Search results