Expanded class hierarchy of PHP_Token_NAMESPACE
class PHP_Token_NAMESPACE extends PHP_TokenWithScope {
public function getName() {
$tokens = $this->tokenStream
->tokens();
$namespace = (string) $tokens[$this->id + 2];
for ($i = $this->id + 3;; $i += 2) {
if (isset($tokens[$i]) && $tokens[$i] instanceof PHP_Token_NS_SEPARATOR) {
$namespace .= '\\' . $tokens[$i + 1];
}
else {
break;
}
}
return $namespace;
}
}
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 | ||
PHP_TokenWithScope:: |
protected | property | ||
PHP_TokenWithScope:: |
public | function | Get the docblock for this token | |
PHP_TokenWithScope:: |
public | function | ||
PHP_TokenWithScope:: |
public | function | ||
PHP_Token_NAMESPACE:: |
public | function |