Ejemplo n.º 1
0
 /**
  * This method parses a simple PHP variable.
  *
  * @return PHP_Depend_Code_ASTVariable
  * @throws PHP_Depend_Parser_UnexpectedTokenException When the actual token
  *         is not a valid variable token.
  * @since 0.9.6
  */
 private function parseVariable()
 {
     $token = $this->consumeToken(self::T_VARIABLE);
     $variable = $this->builder->buildAstVariable($token->image);
     $variable->configureLinesAndColumns($token->startLine, $token->endLine, $token->startColumn, $token->endColumn);
     return $variable;
 }