PHP 클래스 Phan\Language\Scope\GlobalScope

상속: extends Phan\Language\Scope
파일 보기 프로젝트 열기: etsy/phan

공개 메소드들

메소드 설명
addGlobalVariable ( Variable $variable ) : void
addVariable ( Variable $variable ) : void
getGlobalVariableByName ( string $name ) : Variable
getVariableByName ( string $name ) : Variable
getVariableMap ( ) : array
hasGlobalVariableWithName ( string $name ) : boolean
hasVariableWithName ( string $name ) : boolean
isInClassScope ( ) : boolean
isInFunctionLikeScope ( ) : boolean
withVariable ( Variable $variable ) : Scope

메소드 상세

addGlobalVariable() 공개 메소드

public addGlobalVariable ( Variable $variable ) : void
$variable Phan\Language\Element\Variable A variable to add to the set of global variables
리턴 void

addVariable() 공개 메소드

public addVariable ( Variable $variable ) : void
$variable Phan\Language\Element\Variable
리턴 void

getGlobalVariableByName() 공개 메소드

public getGlobalVariableByName ( string $name ) : Variable
$name string
리턴 Phan\Language\Element\Variable The global variable with the given name

getVariableByName() 공개 메소드

public getVariableByName ( string $name ) : Variable
$name string
리턴 Phan\Language\Element\Variable

getVariableMap() 공개 메소드

public getVariableMap ( ) : array
리턴 array A map from name to Variable in this scope

hasGlobalVariableWithName() 공개 메소드

public hasGlobalVariableWithName ( string $name ) : boolean
$name string
리턴 boolean True if a global variable with the given name exists

hasVariableWithName() 공개 메소드

public hasVariableWithName ( string $name ) : boolean
$name string
리턴 boolean True if a variable with the given name is defined within this scope

isInClassScope() 공개 메소드

public isInClassScope ( ) : boolean
리턴 boolean True if we're in a class scope

isInFunctionLikeScope() 공개 메소드

public isInFunctionLikeScope ( ) : boolean
리턴 boolean True if we're in a method/function/closure scope

withVariable() 공개 메소드

public withVariable ( Variable $variable ) : Scope
$variable Phan\Language\Element\Variable A variable to add to the local scope
리턴 Phan\Language\Scope