class Lexer extends Lexer (View source)

Scans a DQL query for tokens.

Constants

T_NONE

T_INTEGER

T_STRING

T_INPUT_PARAMETER

T_FLOAT

T_CLOSE_PARENTHESIS

T_OPEN_PARENTHESIS

T_COMMA

T_DIVIDE

T_DOT

T_EQUALS

T_GREATER_THAN

T_LOWER_THAN

T_MINUS

T_MULTIPLY

T_NEGATE

T_PLUS

T_OPEN_CURLY_BRACE

T_CLOSE_CURLY_BRACE

T_ALIASED_NAME

T_FULLY_QUALIFIED_NAME

T_IDENTIFIER

T_ALL

T_AND

T_ANY

T_AS

T_ASC

T_AVG

T_BETWEEN

T_BOTH

T_BY

T_CASE

T_COALESCE

T_COUNT

T_DELETE

T_DESC

T_DISTINCT

T_ELSE

T_EMPTY

T_END

T_ESCAPE

T_EXISTS

T_FALSE

T_FROM

T_GROUP

T_HAVING

T_HIDDEN

T_IN

T_INDEX

T_INNER

T_INSTANCE

T_IS

T_JOIN

T_LEADING

T_LEFT

T_LIKE

T_MAX

T_MEMBER

T_MIN

T_NEW

T_NOT

T_NULL

T_NULLIF

T_OF

T_OR

T_ORDER

T_OUTER

T_PARTIAL

T_SELECT

T_SET

T_SOME

T_SUM

T_THEN

T_TRAILING

T_TRUE

T_UPDATE

T_WHEN

T_WHERE

T_WITH

Methods

__construct(string $input)

Creates a new query scanner object.

getCatchablePatterns()

{@inheritdoc}

getNonCatchablePatterns()

{@inheritdoc}

getType($value)

{@inheritdoc}

Details

__construct(string $input)

Creates a new query scanner object.

Parameters

string $input A query string.

protected getCatchablePatterns()

{@inheritdoc}

protected getNonCatchablePatterns()

{@inheritdoc}

protected getType($value)

{@inheritdoc}

Parameters

$value