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

extractPostfixImage() private method

This method will extract the image/name of the real property/variable that is wrapped by {@link \PDepend\Source\AST\ASTIndexExpression} nodes. If the given node is now wrapped by index expressions, this method will return the image of the entire $node.
Since: 1.0.0
private extractPostfixImage ( PDepend\Source\AST\ASTNode $node ) : string
$node PDepend\Source\AST\ASTNode The context node that may be wrapped by multiple array or string index expressions.
return string
    private function extractPostfixImage(ASTNode $node)
    {
        while ($node instanceof \PDepend\Source\AST\ASTIndexExpression) {
            $node = $node->getChild(0);
        }
        return $node->getImage();
    }
AbstractPHPParser