ApiGen\Templating\Filters\UrlFilters::processSeeAnnotations PHP Method

processSeeAnnotations() private method

private processSeeAnnotations ( string $value, ApiGen\Contracts\Parser\Reflection\ElementReflectionInterface $reflectionElement ) : string
$value string
$reflectionElement ApiGen\Contracts\Parser\Reflection\ElementReflectionInterface
return string
    private function processSeeAnnotations($value, ElementReflectionInterface $reflectionElement)
    {
        $doc = [];
        foreach (preg_split('~\\s*,\\s*~', $value) as $link) {
            if ($this->elementResolver->resolveElement($link, $reflectionElement) !== null) {
                $doc[] = $this->typeLinks($link, $reflectionElement);
            } else {
                $doc[] = $this->doc($link, $reflectionElement);
            }
        }
        return implode(', ', $doc);
    }