Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
Phan
Language
Scope
GlobalScope
addGlobalVariable
Phan\Language\Scope\GlobalScope::addGlobalVariable PHP Method
GlobalScope Class Documentation
Show file
Open project: etsy/phan
addGlobalVariable()
public
method
public
addGlobalVariable
(
Variable
$variable
) :
void
$variable
Phan\Language\Element\Variable
A variable to add to the set of global variables
return
void
public function addGlobalVariable(Variable $variable) { $this->addVariable($variable); }
GlobalScope
addGlobalVariable
addVariable
getGlobalVariableByName
getVariableByName
getVariableMap
hasGlobalVariableWithName
hasVariableWithName
isInClassScope
isInFunctionLikeScope
withVariable