public function getName() {
if ($this->name !== NULL) {
return $this->name;
}
$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])));
}
return $this->name;
}