PolishFilterLexemesComparer
Table of Contents
-
MAP_FOR_OPERATOR
= ['=' => '==', '!=' => '!=', '<' => '<', '<=' => '<=', '>' => '>', '>=' => '>=', '&' => '&&', '|' => '||', '&&' => '&&', '||' => '||']
-
$properties
: array<string|int, mixed>
-
$stack
: Stack
-
__construct()
: mixed
-
convert()
: mixed
-
compare()
: bool
-
convertToScriptLexeme()
: mixed
-
convertValue()
: float|int|string|bool|null
-
processComparison()
: array<string|int, mixed>
MAP_FOR_OPERATOR
private
mixed
MAP_FOR_OPERATOR
= ['=' => '==', '!=' => '!=', '<' => '<', '<=' => '<=', '>' => '>', '>=' => '>=', '&' => '&&', '|' => '||', '&&' => '&&', '||' => '||']
$properties
private
array<string|int, mixed>
$properties
$stack
private
Stack
$stack
__construct()
public
__construct(RelationEntity|FeatureEntity|array<string|int, mixed> $relation) : mixed
Parameters
-
$relation
: RelationEntity|FeatureEntity|array<string|int, mixed>
-
Return values
mixed
—
convert()
public
convert(array<string|int, FilterLexeme> $polish) : mixed
Parameters
-
$polish
: array<string|int, FilterLexeme>
-
Return values
mixed
—
compare()
private
compare(mixed $a, mixed $b, string $operator) : bool
Parameters
-
$a
: mixed
-
-
$b
: mixed
-
-
$operator
: string
-
Return values
bool
—
convertToScriptLexeme()
private
convertToScriptLexeme(FilterLexeme $lexeme) : mixed
Parameters
-
$lexeme
: FilterLexeme
-
Return values
mixed
—
convertValue()
private
convertValue(FilterLexeme $lexeme) : float|int|string|bool|null
Parameters
-
$lexeme
: FilterLexeme
-
Return values
float|int|string|bool|null
—
processComparison()
private
processComparison(FilterLexeme $lexeme) : array<string|int, mixed>
Parameters
-
$lexeme
: FilterLexeme
-
Return values
array<string|int, mixed>
—