PDepend\Source\AST\AbstractASTType::addMethod PHP Метод

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

Adds the given method to this type.
public addMethod ( PDepend\Source\AST\ASTMethod $method ) : PDepend\Source\AST\ASTMethod
$method PDepend\Source\AST\ASTMethod
Результат PDepend\Source\AST\ASTMethod
    public function addMethod(ASTMethod $method)
    {
        $method->setParent($this);
        $this->methods[] = $method;
        return $method;
    }