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

isReadWriteVariable() private method

Checks if the given expression is a read/write variable as defined in the PHP zend_language_parser.y definition.
Since: 0.10.0
private isReadWriteVariable ( PDepend\Source\AST\ASTNode $expr ) : boolean
$expr PDepend\Source\AST\ASTNode The context node instance.
return boolean
    private function isReadWriteVariable($expr)
    {
        return $expr instanceof \PDepend\Source\AST\ASTVariable || $expr instanceof \PDepend\Source\AST\ASTFunctionPostfix || $expr instanceof \PDepend\Source\AST\ASTVariableVariable || $expr instanceof \PDepend\Source\AST\ASTCompoundVariable || $expr instanceof \PDepend\Source\AST\ASTMemberPrimaryPrefix;
    }
AbstractPHPParser