PHP Class GraphQL\Language\Token

Datei anzeigen Open project: webonyx/graphql-php Class Usage Examples

Public Properties

Property Type Description
$column integer The 1-indexed column number at which this Token begins.
$end integer The character offset at which this Node ends.
$kind string The kind of Token (see one of constants above).
$line integer The 1-indexed line number on which this Token appears.
$next Token
$prev Token Tokens exist as nodes in a double-linked-list amongst all tokens including ignored tokens. is always the first node and the last.
$start integer The character offset at which this Node begins.
$value string | null

Public Methods

Method Description
__construct ( $kind, $start, $end, $line, $column, Token $previous = null, null $value = null ) Token constructor.
getDescription ( ) : string
getKindDescription ( $kind ) : mixed
toArray ( ) : array

Method Details

__construct() public method

Token constructor.
public __construct ( $kind, $start, $end, $line, $column, Token $previous = null, null $value = null )
$kind
$start
$end
$line
$column
$previous Token
$value null

getDescription() public method

public getDescription ( ) : string
return string

getKindDescription() public static method

public static getKindDescription ( $kind ) : mixed
$kind
return mixed

toArray() public method

public toArray ( ) : array
return array

Property Details

$column public_oe property

The 1-indexed column number at which this Token begins.
public int $column
return integer

$end public_oe property

The character offset at which this Node ends.
public int $end
return integer

$kind public_oe property

The kind of Token (see one of constants above).
public string $kind
return string

$line public_oe property

The 1-indexed line number on which this Token appears.
public int $line
return integer

$next public_oe property

public Token,GraphQL\Language $next
return Token

$prev public_oe property

Tokens exist as nodes in a double-linked-list amongst all tokens including ignored tokens. is always the first node and the last.
public Token,GraphQL\Language $prev
return Token

$start public_oe property

The character offset at which this Node begins.
public int $start
return integer

$value public_oe property

public string|null $value
return string | null