PolishFilterLexemesComparer
Table of Contents
-
MAP_FOR_OPERATOR
= ['=' => '==', '!=' => '!=', '<' => '<', '<=' => '<=', '>' => '>', '>=' => '>=', '&' => '&&', '|' => '||', '&&' => '&&', '||' => '||', 'exists' => 'exists', 'type' => 'type']
-
$properties
: array<string|int, mixed>
-
$stack
: Stack
-
__construct()
: mixed
-
convert()
: mixed
-
compare()
: bool
-
convertToScriptLexeme()
: mixed
-
convertValue()
: float|int|string|bool|null
-
equal()
: bool
-
exists()
: bool
-
notEqual()
: bool
-
processComparison()
: array<string|int, mixed>
-
type()
: bool
MAP_FOR_OPERATOR
private
mixed
MAP_FOR_OPERATOR
= ['=' => '==', '!=' => '!=', '<' => '<', '<=' => '<=', '>' => '>', '>=' => '>=', '&' => '&&', '|' => '||', '&&' => '&&', '||' => '||', 'exists' => 'exists', 'type' => 'type']
$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
—
equal()
private
equal(mixed $a, mixed $b) : bool
Parameters
-
$a
: mixed
-
-
$b
: mixed
-
Return values
bool
—
exists()
private
exists(mixed $a, mixed $b) : bool
Parameters
-
$a
: mixed
-
-
$b
: mixed
-
Return values
bool
—
notEqual()
private
notEqual(mixed $a, mixed $b) : bool
Parameters
-
$a
: mixed
-
-
$b
: mixed
-
Return values
bool
—
processComparison()
private
processComparison(FilterLexeme $lexeme) : array<string|int, mixed>
Parameters
-
$lexeme
: FilterLexeme
-
Return values
array<string|int, mixed>
—
type()
private
type(mixed $a, mixed $b) : bool
Parameters
-
$a
: mixed
-
-
$b
: mixed
-
Return values
bool
—