public addGlobalVariable ( |
||
$variable | A variable to add to the set of global variables | |
return | void |
public function addGlobalVariable(Variable $variable)
{
assert($this->hasParentScope(), "No global scope available. This should not happen.");
$this->getParentScope()->addGlobalVariable($variable);
}