PHP Класс PHPMD\Node\MethodNode

Автор: Manuel Pichler ([email protected])
Наследование: extends PHPMD\Node\AbstractCallableNode
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
__construct ( PDepend\Source\AST\ASTMethod $node ) Constructs a new method wrapper.
getFullQualifiedName ( ) : string Returns the full qualified name of a class, an interface, a method or a function.
getNamespaceName ( ) : string Returns the name of the parent package.
getParentName ( ) : string Returns the name of the parent type or null when this node has no parent type.
getParentType ( ) : PHPMD\Node\AbstractTypeNode Returns the parent class or interface instance.
hasSuppressWarningsAnnotationFor ( PHPMD\Rule $rule ) : boolean Checks if this node has a suppressed annotation for the given rule instance.
isAbstract ( ) : boolean Returns true when the underlying method is declared as abstract or is declared as child of an interface.
isDeclaration ( ) : boolean Returns true when this method is the initial method declaration.

Описание методов

__construct() публичный Метод

Constructs a new method wrapper.
public __construct ( PDepend\Source\AST\ASTMethod $node )
$node PDepend\Source\AST\ASTMethod

getFullQualifiedName() публичный Метод

Returns the full qualified name of a class, an interface, a method or a function.
public getFullQualifiedName ( ) : string
Результат string

getNamespaceName() публичный Метод

Returns the name of the parent package.
public getNamespaceName ( ) : string
Результат string

getParentName() публичный Метод

Returns the name of the parent type or null when this node has no parent type.
public getParentName ( ) : string
Результат string

getParentType() публичный Метод

Returns the parent class or interface instance.
public getParentType ( ) : PHPMD\Node\AbstractTypeNode
Результат PHPMD\Node\AbstractTypeNode

hasSuppressWarningsAnnotationFor() публичный Метод

Checks if this node has a suppressed annotation for the given rule instance.
public hasSuppressWarningsAnnotationFor ( PHPMD\Rule $rule ) : boolean
$rule PHPMD\Rule
Результат boolean

isAbstract() публичный Метод

Returns true when the underlying method is declared as abstract or is declared as child of an interface.
public isAbstract ( ) : boolean
Результат boolean

isDeclaration() публичный Метод

Otherwise this method will return false.
С версии: 1.2.1
public isDeclaration ( ) : boolean
Результат boolean