PHPCompiler\Backend\PHP7\PHP::getVarName PHP Method

getVarName() protected method

protected getVarName ( Operand $var )
$var PHPCfg\Operand
    protected function getVarName(Operand $var)
    {
        if ($var instanceof Operand\Literal) {
            return $var->value;
        } elseif (!$this->state->scope->contains($var)) {
            $this->state->scope[$var] = count($this->state->scope) + 1;
        }
        return '$v' . $this->state->scope[$var];
    }