PolishFilterLexemesToElasticsearchFilterConverter
Table of Contents
-
MAP_FOR_BOOLEAN_OPERATOR
= ['&' => 'AND', '|' => 'OR', '&&' => 'AND', '||' => 'OR']
-
$stack
: Stack
-
__construct()
: mixed
-
convert()
: array<string|int, mixed>
-
convertLexemes()
: array<string|int, mixed>
-
convertValue()
: float|int|string|bool|null
-
processBooleanOperator()
: array<string|int, mixed>
-
processComparisonOperator()
: array<string|int, mixed>
-
processExistsOperator()
: array<string|int, mixed>
-
processNegativeOperation()
: array<string|int, mixed>
MAP_FOR_BOOLEAN_OPERATOR
private
mixed
MAP_FOR_BOOLEAN_OPERATOR
= ['&' => 'AND', '|' => 'OR', '&&' => 'AND', '||' => 'OR']
$stack
private
Stack
$stack
__construct()
public
__construct() : mixed
Return values
mixed
—
convert()
public
convert(array<string|int, FilterLexeme> $polish) : array<string|int, mixed>
Parameters
-
$polish
: array<string|int, FilterLexeme>
-
-
throws
-
RuntimeException
-
throws
-
UnderflowException
Return values
array<string|int, mixed>
—
convertLexemes()
private
convertLexemes(FilterLexeme $lexeme) : array<string|int, mixed>
Parameters
-
$lexeme
: FilterLexeme
-
-
throws
-
RuntimeException
Return values
array<string|int, mixed>
—
convertValue()
private
convertValue(FilterLexeme $lexeme) : float|int|string|bool|null
Parameters
-
$lexeme
: FilterLexeme
-
Return values
float|int|string|bool|null
—
processBooleanOperator()
private
processBooleanOperator(FilterLexeme $lexeme) : array<string|int, mixed>
Parameters
-
$lexeme
: FilterLexeme
-
Return values
array<string|int, mixed>
—
processComparisonOperator()
private
processComparisonOperator(FilterLexeme $lexeme) : array<string|int, mixed>
Parameters
-
$lexeme
: FilterLexeme
-
Return values
array<string|int, mixed>
—
processExistsOperator()
private
processExistsOperator(FilterLexeme $lexeme) : array<string|int, mixed>
Parameters
-
$lexeme
: FilterLexeme
-
Return values
array<string|int, mixed>
—
processNegativeOperation()
private
processNegativeOperation(FilterLexeme $lexeme) : array<string|int, mixed>
Parameters
-
$lexeme
: FilterLexeme
-
Return values
array<string|int, mixed>
—