FilterLexemesToPolishConverter
in package
Table of Contents
- $polish : array<string|int, mixed>
- $stack : Stack
- __construct() : mixed
- convert() : array<string|int, FilterLexeme>|null
- getOperationPriority() : int
- isOperation() : bool
- processBracket() : bool
- processOperation() : void
Properties
$polish
private
array<string|int, mixed>
$polish
$stack
private
Stack
$stack
Methods
__construct()
public
__construct() : mixed
Return values
mixed —convert()
public
convert(array<string|int, FilterLexeme> $lexemes) : array<string|int, FilterLexeme>|null
Parameters
- $lexemes : array<string|int, FilterLexeme>
Return values
array<string|int, FilterLexeme>|null —getOperationPriority()
protected
getOperationPriority(FilterLexeme $lexeme) : int
Parameters
- $lexeme : FilterLexeme
Return values
int —isOperation()
protected
isOperation(FilterLexeme $lexeme) : bool
Parameters
- $lexeme : FilterLexeme
Return values
bool —processBracket()
protected
processBracket(FilterLexeme $lexeme) : bool
Parameters
- $lexeme : FilterLexeme
Return values
bool —processOperation()
protected
processOperation(FilterLexeme $lexeme) : void
Parameters
- $lexeme : FilterLexeme