private function PHP_Token_Includes::process in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpunit/php-token-stream/src/Token.php \PHP_Token_Includes::process()
2 calls to PHP_Token_Includes::process()
- PHP_Token_Includes::getName in vendor/
phpunit/ php-token-stream/ src/ Token.php - PHP_Token_Includes::getType in vendor/
phpunit/ php-token-stream/ src/ Token.php
File
- vendor/
phpunit/ php-token-stream/ src/ Token.php, line 267
Class
Code
private function process() {
$tokens = $this->tokenStream
->tokens();
if ($tokens[$this->id + 2] instanceof PHP_Token_CONSTANT_ENCAPSED_STRING) {
$this->name = trim($tokens[$this->id + 2], "'\"");
$this->type = strtolower(str_replace('PHP_Token_', '', get_class($tokens[$this->id])));
}
}