src/Leevel/Kernel/Utils/Doc.php
protected function parseClassContent(ReflectionClass $reflection): string
    {
        if (!($comment = $reflection->getDocComment()) ||
            !($info = $this->parseComment($comment))) {
            return '';
        }

        $data = [];
        $data[] = $this->formatTitle($info['title'] ?? '', true);
        $data[] = $this->formatDescription($info['description'] ?? '');
        $data[] = $this->formatUsers($reflection);

        // 指定保存路径
        if (isset($info['path'])) {
            $this->setSavePath($info['path']);
        }

        return implode(PHP_EOL, $data);
    }
protected function parseClassContent(ReflectionClass $reflection): string
    {
        if (!($comment = $reflection->getDocComment()) ||
            !($info = $this->parseComment($comment))) {
            return '';
        }

        $data = [];
        $data[] = $this->formatTitle($info['title'] ?? '', true);
        $data[] = $this->formatDescription($info['description'] ?? '');
        $data[] = $this->formatUsers($reflection);

        // 指定保存路径
        if (isset($info['path'])) {
            $this->setSavePath($info['path']);
        }

        return implode(PHP_EOL, $data);
    }
解析文档注解内容.

@param \ReflectionClass $reflection

@return string