PDepend\Source\Language\PHP\AbstractPHPParser::parsePostfixIdentifier PHP Method

parsePostfixIdentifier() protected method

This method parses a PHP version specific identifier for method and property postfix expressions.
Since: 1.0.0
protected parsePostfixIdentifier ( ) : PDepend\Source\AST\ASTNode
return PDepend\Source\AST\ASTNode
    protected function parsePostfixIdentifier()
    {
        switch ($this->tokenizer->peek()) {
            case Tokens::T_STRING:
                $node = $this->parseLiteral();
                break;
            default:
                $node = $this->parseCompoundVariableOrVariableVariableOrVariable();
                break;
        }
        return $this->parseOptionalIndexExpression($node);
    }
AbstractPHPParser