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

buildMethods() private method

private buildMethods ( $methods, $className )
    private function buildMethods($methods, $className)
    {
        $methodArray = [];
        foreach ($methods as $name => $method) {
            if ($method->getVisibility() !== 'public') {
                continue;
            }
            $docBlock = $method->getDocBlock();
            if (is_null($docBlock)) {
                throw new \Exception(sprintf('%s::%s has no description', $className, $name));
            }
            $access = $docBlock->getTagsByName('access');
            if (!empty($access)) {
                if ($access[0]->getContent() === 'private') {
                    continue;
                }
            }
            $methodArray[] = $this->buildMethod($method);
        }
        return $methodArray;
    }