PHPCfg\Visitor\CallFinder::enterOp PHP Method

enterOp() public method

public enterOp ( Op $op, Block $block )
$op PHPCfg\Op
$block PHPCfg\Block
    public function enterOp(Op $op, Block $block)
    {
        if ($op instanceof Op\Expr\FuncCall) {
            $this->funcCalls[] = [$op, $this->func];
        } elseif ($op instanceof Op\Expr\NsFuncCall) {
            $this->nsFuncCalls[] = [$op, $this->func];
        } elseif ($op instanceof Op\Expr\MethodCall) {
            $this->methodCalls[] = [$op, $this->func];
        } elseif ($op instanceof Op\Expr\StaticCall) {
            $this->staticCalls[] = [$op, $this->func];
        } elseif ($op instanceof Op\Expr\New_) {
            $this->newCalls[] = [$op, $this->func];
        }
    }