PHP Интерфейс Pinq\Parsing\IFunctionDeclaration

Автор: Elliot Levin ([email protected])
Показать файл Открыть проект

Открытые методы

Метод Описание
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