Documentation

PHP_Token
in package

A PHP token.

Tags
author

Sebastian Bergmann sebastian@phpunit.de

copyright

Sebastian Bergmann sebastian@phpunit.de

license

http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License

link
http://github.com/sebastianbergmann/php-token-stream/tree
since

Class available since Release 1.0.0

Table of Contents

$id  : int
$line  : int
$text  : string
$tokenStream  : PHP_Token_Stream
__construct()  : mixed
Constructor.
__toString()  : string
getLine()  : int

Properties

$text

protected string $text

Methods

__construct()

Constructor.

public __construct(string $text, int $line, PHP_Token_Stream $tokenStream, int $id) : mixed
Parameters
$text : string
$line : int
$tokenStream : PHP_Token_Stream
$id : int
Return values
mixed

__toString()

public __toString() : string
Return values
string

getLine()

public getLine() : int
Return values
int

Search results