PHPCfg\Op::addReadRef PHP Method

addReadRef() protected method

protected addReadRef ( $op )
    protected function addReadRef($op)
    {
        if (is_array($op)) {
            $new = [];
            foreach ($op as $key => $o) {
                $new[$key] = $this->addReadRef($o);
            }
            return $new;
        } elseif (!$op instanceof Operand) {
            return $op;
        }
        return $op->addUsage($this);
    }