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
파일 보기 프로젝트 열기: etsy/phan 1 사용 예제들

공개 메소드들

메소드 설명
__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