PHP Class PHPMD\Node\MethodNode

Author: Manuel Pichler ([email protected])
Inheritance: extends PHPMD\Node\AbstractCallableNode
显示文件 Open project: horde/horde Class Usage Examples

Public Methods

Method Description
__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.

Method Details

__construct() public method

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

getFullQualifiedName() public method

Returns the full qualified name of a class, an interface, a method or a function.
public getFullQualifiedName ( ) : string
return string

getNamespaceName() public method

Returns the name of the parent package.
public getNamespaceName ( ) : string
return string

getParentName() public method

Returns the name of the parent type or null when this node has no parent type.
public getParentName ( ) : string
return string

getParentType() public method

Returns the parent class or interface instance.
public getParentType ( ) : PHPMD\Node\AbstractTypeNode
return PHPMD\Node\AbstractTypeNode

hasSuppressWarningsAnnotationFor() public method

Checks if this node has a suppressed annotation for the given rule instance.
public hasSuppressWarningsAnnotationFor ( PHPMD\Rule $rule ) : boolean
$rule PHPMD\Rule
return boolean

isAbstract() public method

Returns true when the underlying method is declared as abstract or is declared as child of an interface.
public isAbstract ( ) : boolean
return boolean

isDeclaration() public method

Otherwise this method will return false.
Since: 1.2.1
public isDeclaration ( ) : boolean
return boolean