PHP Класс SqlParser\Token

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$flags integer The flags of this token.
$position integer The position in the initial string where this token started.
$token string The token it its raw string representation.
$type integer The type of this token.
$value mixed The value this token contains (i.e. token after some evaluation)

Открытые методы

Метод Описание
__construct ( string $token, integer $type, integer $flags ) Constructor.
extract ( ) : mixed Does little processing to the token to extract a value.
getInlineToken ( ) : string Converts the token into an inline token by replacing tabs and new lines.

Описание методов

__construct() публичный Метод

Constructor.
public __construct ( string $token, integer $type, integer $flags )
$token string The value of the token.
$type integer The type of the token.
$flags integer The flags of the token.

extract() публичный Метод

If no processing can be done it will return the initial string.
public extract ( ) : mixed
Результат mixed

getInlineToken() публичный Метод

Converts the token into an inline token by replacing tabs and new lines.
public getInlineToken ( ) : string
Результат string

Описание свойств

$flags публичное свойство

The flags of this token.
public int $flags
Результат integer

$position публичное свойство

The position in the initial string where this token started.
public int $position
Результат integer

$token публичное свойство

The token it its raw string representation.
public string $token
Результат string

$type публичное свойство

The type of this token.
public int $type
Результат integer

$value публичное свойство

The value this token contains (i.e. token after some evaluation)
public mixed $value
Результат mixed