Phan\Language\Scope::getGlobalVariableByName PHP Method

getGlobalVariableByName() public method

public getGlobalVariableByName ( string $name ) : Variable
$name string
return Phan\Language\Element\Variable The global variable with the given name
    public function getGlobalVariableByName(string $name) : Variable
    {
        assert($this->hasParentScope(), "No global scope available. This should not happen.");
        return $this->getParentScope()->getGlobalVariableByName($name);
    }