PDepend\Source\Language\PHP\PHPBuilder::buildMethod PHP Method

buildMethod() public method

Builds a new method instance.
public buildMethod ( string $name ) : PDepend\Source\AST\ASTMethod
$name string
return PDepend\Source\AST\ASTMethod
    public function buildMethod($name)
    {
        $this->checkBuilderState();
        // Debug method creation
        Log::debug("Creating: \\PDepend\\Source\\AST\\ASTMethod({$name})");
        // Create a new method instance
        $method = new ASTMethod($name);
        $method->setCache($this->cache);
        return $method;
    }
PHPBuilder