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

        $data = [];
        $data[] = $this->formatTitle($info['title'] ?? '');
        $data[] = $this->formatDescription($info['description'] ?? '');
        $data[] = $this->formatBody($method, $info['lang'] ?? 'php');
        $data[] = $this->formatNote($info['note'] ?? '');

        return implode(PHP_EOL, $data).PHP_EOL;
    }
protected function parseMethodContent(ReflectionMethod $method): string
    {
        if (!($comment = $method->getDocComment()) ||
            !($info = $this->parseComment($comment))) {
            return '';
        }

        $data = [];
        $data[] = $this->formatTitle($info['title'] ?? '');
        $data[] = $this->formatDescription($info['description'] ?? '');
        $data[] = $this->formatBody($method, $info['lang'] ?? 'php');
        $data[] = $this->formatNote($info['note'] ?? '');

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

@param \ReflectionMethod $comment

@return string