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;
}