class PHP_Token_CLASS in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/phpunit/php-token-stream/src/Token.php \PHP_Token_CLASS
Hierarchy
- class \PHP_Token
- class \PHP_TokenWithScope
- class \PHP_TokenWithScopeAndVisibility
- class \PHP_Token_INTERFACE
- class \PHP_Token_CLASS
- class \PHP_Token_INTERFACE
- class \PHP_TokenWithScopeAndVisibility
- class \PHP_TokenWithScope
Expanded class hierarchy of PHP_Token_CLASS
2 string references to 'PHP_Token_CLASS'
- PHP_CodeCoverage::getLinesToBeIgnored in vendor/
phpunit/ php-code-coverage/ src/ CodeCoverage.php - Returns the lines of a source file that should be ignored.
- PHP_Token_Stream::parse in vendor/
phpunit/ php-token-stream/ src/ Token/ Stream.php
File
- vendor/
phpunit/ php-token-stream/ src/ Token.php, line 615
View source
class PHP_Token_CLASS extends PHP_Token_INTERFACE {
/**
* @return string
*/
public function getName() {
$next = $this->tokenStream[$this->id + 1];
if ($next instanceof PHP_Token_WHITESPACE) {
$next = $this->tokenStream[$this->id + 2];
}
if ($next instanceof PHP_Token_STRING) {
return (string) $next;
}
if ($next instanceof PHP_Token_OPEN_CURLY || $next instanceof PHP_Token_EXTENDS || $next instanceof PHP_Token_IMPLEMENTS) {
return 'anonymous class';
}
}
}