Phan\Language\Scope\GlobalScope::withVariable PHP Метод

withVariable() публичный Метод

public withVariable ( Variable $variable ) : Scope
$variable Phan\Language\Element\Variable A variable to add to the local scope
Результат Phan\Language\Scope
    public function withVariable(Variable $variable) : Scope
    {
        $this->addVariable($variable);
        return $this;
    }