A PHP token.
@author Sebastian Bergmann <sb@sebastian-bergmann.de> @copyright 2009-2012 Sebastian Bergmann <sb@sebastian-bergmann.de> @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License @version Release: @package_version@ @link http://github.com/sebastianbergmann/php-token-stream/tree @since Class available since Release 1.0.0
Expanded class hierarchy of PHP_Token
abstract class PHP_Token {
/**
* @var string
*/
protected $text;
/**
* @var integer
*/
protected $line;
/**
* @var PHP_Token_Stream
*/
protected $tokenStream;
/**
* @var integer
*/
protected $id;
/**
* Constructor.
*
* @param string $text
* @param integer $line
* @param PHP_Token_Stream $tokenStream
* @param integer $id
*/
public function __construct($text, $line, PHP_Token_Stream $tokenStream, $id) {
$this->text = $text;
$this->line = $line;
$this->tokenStream = $tokenStream;
$this->id = $id;
}
/**
* @return string
*/
public function __toString() {
return $this->text;
}
/**
* @return integer
*/
public function getLine() {
return $this->line;
}
}
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PHP_Token:: |
protected | property | ||
PHP_Token:: |
protected | property | ||
PHP_Token:: |
protected | property | ||
PHP_Token:: |
protected | property | ||
PHP_Token:: |
public | function | ||
PHP_Token:: |
public | function | Constructor. | |
PHP_Token:: |
public | function |