PHP 인터페이스 Pinq\Parsing\IFunctionDeclaration

저자: Elliot Levin ([email protected])
파일 보기 프로젝트 열기: timetoogo/pinq

공개 메소드들

메소드 설명
getClass ( ) : string | null Gets the class which the function was declared within.
getClosureNestingLevel ( ) : integer Gets the amount of closures function which the function was declared within.
getFunction ( ) : string | null Gets the function which the function was declared within.
getNamespace ( ) : string | null Gets the namespace which the function was declared within.
getTrait ( ) : string | null Gets the trait which the function was declared within.
isWithinClass ( ) : boolean Whether the function was declared within a class.
isWithinFunction ( ) : boolean Whether the function was declared within a function.
isWithinNamespace ( ) : boolean Whether the function was declared within a namespace.
isWithinTrait ( ) : boolean Whether the function was declared within a trait.

메소드 상세

getClass() 공개 메소드

Null if not defined within a class.
public getClass ( ) : string | null
리턴 string | null

getClosureNestingLevel() 공개 메소드

Gets the amount of closures function which the function was declared within.
public getClosureNestingLevel ( ) : integer
리턴 integer

getFunction() 공개 메소드

Null if not defined within a function.
public getFunction ( ) : string | null
리턴 string | null

getNamespace() 공개 메소드

Null if in the global namespace.
public getNamespace ( ) : string | null
리턴 string | null

getTrait() 공개 메소드

Null if not defined within a trait.
public getTrait ( ) : string | null
리턴 string | null

isWithinClass() 공개 메소드

Whether the function was declared within a class.
public isWithinClass ( ) : boolean
리턴 boolean

isWithinFunction() 공개 메소드

Whether the function was declared within a function.
public isWithinFunction ( ) : boolean
리턴 boolean

isWithinNamespace() 공개 메소드

Whether the function was declared within a namespace.
public isWithinNamespace ( ) : boolean
리턴 boolean

isWithinTrait() 공개 메소드

Whether the function was declared within a trait.
public isWithinTrait ( ) : boolean
리턴 boolean