PolishFilterLexemesToMongoFilterConverter
Table of Contents
-
MAP_FOR_BOOLEAN_OPERATOR
= ['&' => '$and', '|' => '$or', '&&' => '$and', '||' => '$or']
-
MAP_FOR_COMPARISON_OPERATOR
= ['=' => '$eq', '!=' => '$ne', '<' => '$lt', '<=' => '$lte', '>' => '$gt', '>=' => '$gte', 'exists' => '$exists', 'type' => '$type']
-
$stack
: Stack
-
__construct()
: mixed
-
convert()
: array<string|int, mixed>|null
-
convertToMongoLexeme()
: MongoLexeme|null
-
convertValue()
: float|int|string|Regex|bool|null
-
processBooleanOperator()
: MongoLexeme|null
-
processComparisonOperator()
: MongoLexeme|null
MAP_FOR_BOOLEAN_OPERATOR
private
mixed
MAP_FOR_BOOLEAN_OPERATOR
= ['&' => '$and', '|' => '$or', '&&' => '$and', '||' => '$or']
MAP_FOR_COMPARISON_OPERATOR
private
mixed
MAP_FOR_COMPARISON_OPERATOR
= ['=' => '$eq', '!=' => '$ne', '<' => '$lt', '<=' => '$lte', '>' => '$gt', '>=' => '$gte', 'exists' => '$exists', 'type' => '$type']
$stack
private
Stack
$stack
__construct()
public
__construct() : mixed
Return values
mixed
—
convert()
public
convert(array<string|int, FilterLexeme> $polish) : array<string|int, mixed>|null
Parameters
-
$polish
: array<string|int, FilterLexeme>
-
Return values
array<string|int, mixed>|null
—
convertToMongoLexeme()
private
convertToMongoLexeme(FilterLexeme $lexeme) : MongoLexeme|null
Parameters
-
$lexeme
: FilterLexeme
-
Return values
MongoLexeme|null
—
convertValue()
private
convertValue(FilterLexeme $lexeme) : float|int|string|Regex|bool|null
Parameters
-
$lexeme
: FilterLexeme
-
Return values
float|int|string|Regex|bool|null
—
processBooleanOperator()
private
processBooleanOperator(FilterLexeme $lexeme) : MongoLexeme|null
Parameters
-
$lexeme
: FilterLexeme
-
Return values
MongoLexeme|null
—
processComparisonOperator()
private
processComparisonOperator(FilterLexeme $lexeme) : MongoLexeme|null
Parameters
-
$lexeme
: FilterLexeme
-
Return values
MongoLexeme|null
—