A warning that occurred during the parse process.
More...
A warning that occurred during the parse process.
◆ __construct()
CirrusSearch\Parser\AST\ParseWarning::__construct |
( |
| $message, |
|
|
| $start, |
|
|
array | $expectedTokens = [], |
|
|
| $actualToken = null, |
|
|
array | $messageParams = [] ) |
- Parameters
-
string | $message | |
int | $start | |
string[] | $expectedTokens | |
string | null | $actualToken | |
mixed[] | $messageParams | |
◆ getActualToken()
CirrusSearch\Parser\AST\ParseWarning::getActualToken |
( |
| ) |
|
Token found.
- Returns
- string
◆ getExpectedTokens()
CirrusSearch\Parser\AST\ParseWarning::getExpectedTokens |
( |
| ) |
|
Token types that were expected The type names are parser dependent but should provide meaningful hints to the user.
- Returns
- string[]
◆ getMessage()
CirrusSearch\Parser\AST\ParseWarning::getMessage |
( |
| ) |
|
message code
- Returns
- string
◆ getMessageParams()
CirrusSearch\Parser\AST\ParseWarning::getMessageParams |
( |
| ) |
|
◆ getStart()
CirrusSearch\Parser\AST\ParseWarning::getStart |
( |
| ) |
|
Offset of the error.
NOTE: Offset in byte (mb_strcut if you want to provide feedback and print the error in context)
- Returns
- int
◆ toArray()
CirrusSearch\Parser\AST\ParseWarning::toArray |
( |
| ) |
|
The documentation for this class was generated from the following file:
- includes/Parser/AST/ParseWarning.php