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

Наследование: extends Phan\Language\Element\TypedStructuralElement, use trait Phan\Language\Element\Addressable, use trait Phan\Analyze\Analyzable
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
__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