PHP Класс Phan\Language\Element\Func

Наследование: extends AddressableElement, implements Phan\Language\Element\FunctionInterface, use trait Phan\Analysis\Analyzable, use trait Phan\Memoize, use trait FunctionTrait, use trait Phan\Language\Element\ClosedScopeElement
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
__construct ( Context $context, string $name, UnionType $type, integer $flags, FullyQualifiedFunctionName $fqsen )
__toString ( ) : string
alternateGenerator ( CodeBase $code_base ) : Generator
fromNode ( Context $context, CodeBase $code_base, ast\Node\Decl $node, FullyQualifiedFunctionName $fqsen ) : Func
getFQSEN ( ) : FullyQualifiedFunctionName

Описание методов

__construct() публичный метод

public __construct ( Context $context, string $name, UnionType $type, integer $flags, FullyQualifiedFunctionName $fqsen )
$context Phan\Language\Context The context in which the structural element lives
$name string
$type Phan\Language\UnionType
$flags integer
$fqsen Phan\Language\FQSEN\FullyQualifiedFunctionName

__toString() публичный метод

public __toString ( ) : string
Результат string A string representation of this function signature

alternateGenerator() публичный метод

public alternateGenerator ( CodeBase $code_base ) : Generator
$code_base Phan\CodeBase
Результат Generator The set of all alternates to this function

fromNode() публичный статический метод

public static fromNode ( Context $context, CodeBase $code_base, ast\Node\Decl $node, FullyQualifiedFunctionName $fqsen ) : Func
$context Phan\Language\Context The context in which the node appears
$code_base Phan\CodeBase
$node ast\Node\Decl An AST node representing a function
$fqsen Phan\Language\FQSEN\FullyQualifiedFunctionName A fully qualified name for the function
Результат Func A Func representing the AST node in the given context

getFQSEN() публичный метод

public getFQSEN ( ) : FullyQualifiedFunctionName
Результат Phan\Language\FQSEN\FullyQualifiedFunctionName