parseReturn example



            /** @var Deprecated|null $deprecated */
            $deprecated = $docBlock->getTagsByName('deprecated')[0] ?? null;

            $methods[] = [
                'title' => $method->getName() . '()',
                'summary' => $docBlock->getSummary(),
                'description' => $docBlock->getDescription()->render(),
                'deprecated' => $deprecated ? (string) $deprecated : null,
                'arguments' => $this->parseArguments($method$docBlock$scriptServices),
                'return' => $this->parseReturn($method$docBlock$scriptServices),
                'examples' => $this->parseExamples($method$docBlock),
            ];
        }

        return $methods;
    }

    /** * @param list<class-string<object>> $scriptServices * * @return list<array<string, mixed>> */
Home | Imprint | This part of the site doesn't use cookies.