PHP 클래스 Phan\Language\Element\Method

상속: extends Phan\Language\Element\TypedStructuralElement, use trait Phan\Language\Element\Addressable, use trait Phan\Analyze\Analyzable
파일 보기 프로젝트 열기: etsy/phan 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( Context $context, string $name, UnionType $type, integer $flags, FullyQualifiedMethodName $fqsen )
__toString ( ) : string
alternateGenerator ( CodeBase $code_base ) : Generator
defaultConstructorForClassInContext ( Clazz $clazz, Context $context, CodeBase $code_base ) : Method
fromNode ( Context $context, CodeBase $code_base, ast\Node\Decl $node, FullyQualifiedMethodName $fqsen ) : Method
getFQSEN ( ) : FullyQualifiedMethodName
getIsMagic ( ) : boolean
getIsMagicCall ( ) : boolean
getIsMagicCallStatic ( ) : boolean
getIsMagicGet ( ) : boolean
getIsMagicSet ( ) : boolean
getOverriddenMethod ( CodeBase $code_base ) : Phan\Language\Element\ClassElement
getUnionType ( ) : UnionType
isAbstract ( ) : boolean
returnsRef ( ) : boolean

메소드 상세

__construct() 공개 메소드

public __construct ( Context $context, string $name, UnionType $type, integer $flags, FullyQualifiedMethodName $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\FullyQualifiedMethodName A fully qualified name for the element

__toString() 공개 메소드

public __toString ( ) : string
리턴 string A string representation of this method signature

alternateGenerator() 공개 메소드

public alternateGenerator ( CodeBase $code_base ) : Generator
$code_base Phan\CodeBase
리턴 Generator The set of all alternates to this method

defaultConstructorForClassInContext() 공개 정적인 메소드

public static defaultConstructorForClassInContext ( Clazz $clazz, Context $context, CodeBase $code_base ) : Method
$clazz Clazz
$context Phan\Language\Context
$code_base Phan\CodeBase
리턴 Method A default constructor for the given class

fromNode() 공개 정적인 메소드

public static fromNode ( Context $context, CodeBase $code_base, ast\Node\Decl $node, FullyQualifiedMethodName $fqsen ) : Method
$context Phan\Language\Context The context in which the node appears
$code_base Phan\CodeBase
$node ast\Node\Decl An AST node representing a method
$fqsen Phan\Language\FQSEN\FullyQualifiedMethodName
리턴 Method A Method representing the AST node in the given context

getFQSEN() 공개 메소드

public getFQSEN ( ) : FullyQualifiedMethodName
리턴 Phan\Language\FQSEN\FullyQualifiedMethodName

getIsMagic() 공개 메소드

public getIsMagic ( ) : boolean
리턴 boolean True if this is a magic method

getIsMagicCall() 공개 메소드

public getIsMagicCall ( ) : boolean
리턴 boolean True if this is the magic `__call` method

getIsMagicCallStatic() 공개 메소드

public getIsMagicCallStatic ( ) : boolean
리턴 boolean True if this is the magic `__callStatic` method

getIsMagicGet() 공개 메소드

public getIsMagicGet ( ) : boolean
리턴 boolean True if this is the magic `__get` method

getIsMagicSet() 공개 메소드

public getIsMagicSet ( ) : boolean
리턴 boolean True if this is the magic `__set` method

getOverriddenMethod() 공개 메소드

public getOverriddenMethod ( CodeBase $code_base ) : Phan\Language\Element\ClassElement
$code_base Phan\CodeBase The code base with which to look for classes
리턴 Phan\Language\Element\ClassElement The Method that this Method is overriding

getUnionType() 공개 메소드

public getUnionType ( ) : UnionType
리턴 Phan\Language\UnionType The type of this method in its given context.

isAbstract() 공개 메소드

public isAbstract ( ) : boolean
리턴 boolean True if this is an abstract method

returnsRef() 공개 메소드

public returnsRef ( ) : boolean
리턴 boolean True if this method returns reference