PDepend\Source\AST\AbstractASTType::addMethod PHP Method

addMethod() public method

Adds the given method to this type.
public addMethod ( PDepend\Source\AST\ASTMethod $method ) : PDepend\Source\AST\ASTMethod
$method PDepend\Source\AST\ASTMethod
return PDepend\Source\AST\ASTMethod
    public function addMethod(ASTMethod $method)
    {
        $method->setParent($this);
        $this->methods[] = $method;
        return $method;
    }