PHP Class Phan\Language\Element\Func

Inheritance: 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
Afficher le fichier Open project: etsy/phan Class Usage Examples

Méthodes publiques

Méthode Description
__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

Method Details

__construct() public méthode

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 méthode

public __toString ( ) : string
Résultat string A string representation of this function signature

alternateGenerator() public méthode

public alternateGenerator ( CodeBase $code_base ) : Generator
$code_base Phan\CodeBase
Résultat Generator The set of all alternates to this function

fromNode() public static méthode

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
Résultat Func A Func representing the AST node in the given context

getFQSEN() public méthode

public getFQSEN ( ) : FullyQualifiedFunctionName
Résultat Phan\Language\FQSEN\FullyQualifiedFunctionName