Google\Cloud\Dev\DocGenerator\Parser\CodeParser::buildMethod PHP Method

buildMethod() private method

private buildMethod ( $method )
    private function buildMethod($method)
    {
        $docBlock = $method->getDocBlock();
        $fullDescription = $docBlock->getText();
        $resources = $docBlock->getTagsByName('see');
        $params = $docBlock->getTagsByName('param');
        $exceptions = $docBlock->getTagsByName('throws');
        $returns = $docBlock->getTagsByName('return');
        $docText = '';
        $examples = null;
        $split = $this->splitDescription($fullDescription);
        return ['id' => $method->getName(), 'type' => $method->getName() === '__construct' ? 'constructor' : 'instance', 'name' => $method->getName(), 'source' => $this->outputName . '#L' . $method->getLineNumber(), 'description' => $this->buildDescription($docBlock, $split['description']), 'examples' => $this->buildExamples($split['examples']), 'resources' => $this->buildResources($resources), 'params' => $this->buildParams($params), 'exceptions' => $this->buildExceptions($exceptions), 'returns' => $this->buildReturns($returns)];
    }