Method | Description | |
---|---|---|
addGlobalVariable ( |
||
addVariable ( |
||
getGlobalVariableByName ( string $name ) : |
||
getVariableByName ( string $name ) : |
||
getVariableMap ( ) : array | ||
hasGlobalVariableWithName ( string $name ) : boolean | ||
hasVariableWithName ( string $name ) : boolean | ||
isInClassScope ( ) : boolean | ||
isInFunctionLikeScope ( ) : boolean | ||
withVariable ( |
public addGlobalVariable ( |
||
$variable | A variable to add to the set of global variables | |
return | void |
public addVariable ( |
||
$variable | ||
return | void |
public getGlobalVariableByName ( string $name ) : |
||
$name | string | |
return | The global variable with the given name |
public getVariableByName ( string $name ) : |
||
$name | string | |
return |
public getVariableMap ( ) : array | ||
return | array | A map from name to Variable in this scope |
public hasGlobalVariableWithName ( string $name ) : boolean | ||
$name | string | |
return | boolean | True if a global variable with the given name exists |
public hasVariableWithName ( string $name ) : boolean | ||
$name | string | |
return | boolean | True if a variable with the given name is defined within this scope |
public isInClassScope ( ) : boolean | ||
return | boolean | True if we're in a class scope |
public isInFunctionLikeScope ( ) : boolean | ||
return | boolean | True if we're in a method/function/closure scope |
public withVariable ( |
||
$variable | A variable to add to the local scope | |
return |