Property | Type | Description | |
---|---|---|---|
$variable_map |
Method | Description | |
---|---|---|
__construct ( |
||
__toString ( ) : string | ||
addGlobalVariable ( |
||
addTemplateType ( Phan\Language\Type\TemplateType $template_type ) : void | ||
addVariable ( |
||
getClassFQSEN ( ) : |
||
getFQSEN ( ) | ||
getFunctionLikeFQSEN ( ) : |
||
getGlobalVariableByName ( string $name ) : |
||
getParentScope ( ) : |
||
getTemplateType ( string $template_type_identifier ) : Phan\Language\Type\TemplateType | ||
getTemplateTypeMap ( ) : array | ||
getVariableByName ( string $name ) : |
||
getVariableMap ( ) : array | ||
hasAnyTemplateType ( ) : boolean | ||
hasFQSEN ( ) : boolean | ||
hasGlobalVariableWithName ( string $name ) : boolean | ||
hasParentScope ( ) : boolean | ||
hasTemplateType ( string $template_type_identifier ) : boolean | ||
hasVariableWithName ( string $name ) : boolean | ||
isInClassScope ( ) : boolean | ||
isInFunctionLikeScope ( ) : boolean | ||
withVariable ( |
public __construct ( |
||
$parent_scope | ||
$fqsen | FQSEN |
public __toString ( ) : string | ||
return | string | A string representation of this scope |
public addGlobalVariable ( |
||
$variable | A variable to add to the set of global variables | |
return | void |
public addTemplateType ( Phan\Language\Type\TemplateType $template_type ) : void | ||
$template_type | Phan\Language\Type\TemplateType | A template type parameterizing the generic class in scope |
return | void |
public addVariable ( |
||
$variable | ||
return | void |
public getClassFQSEN ( ) : |
||
return | Crawl the scope hierarchy to get a class FQSEN. |
public getFunctionLikeFQSEN ( ) : |
||
return | Crawl the scope hierarchy to get a method FQSEN. |
public getGlobalVariableByName ( string $name ) : |
||
$name | string | |
return | The global variable with the given name |
public getParentScope ( ) : |
||
return | Get the parent scope of this scope |
public getTemplateType ( string $template_type_identifier ) : Phan\Language\Type\TemplateType | ||
$template_type_identifier | string | |
return | Phan\Language\Type\TemplateType | A TemplateType parameterizing the generic class in scope |
public getTemplateTypeMap ( ) : array | ||
return | array | The set of all template types parameterizing this generic class |
public getVariableByName ( string $name ) : |
||
$name | string | |
return |
public getVariableMap ( ) : array | ||
return | array | A map from name to Variable in this scope |
public hasAnyTemplateType ( ) : boolean | ||
return | boolean | True if there are any template types parameterizing a generic class in this scope. |
public hasGlobalVariableWithName ( string $name ) : boolean | ||
$name | string | |
return | boolean | True if a global variable with the given name exists |
public hasParentScope ( ) : boolean | ||
return | boolean | True if this scope has a parent scope |
public hasTemplateType ( string $template_type_identifier ) : boolean | ||
$template_type_identifier | string | |
return | boolean | True if the given template type identifier is defined within this context |
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 |