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
Show file Open project: etsy/phan Class Usage Examples

Public Methods

Method 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 method

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 method

public __toString ( ) : string
return string A string representation of this function signature

alternateGenerator() public method

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

fromNode() public static method

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

getFQSEN() public method

public getFQSEN ( ) : FullyQualifiedFunctionName
return Phan\Language\FQSEN\FullyQualifiedFunctionName