ApiGen\Templating\Filters\UrlFilters::processUsesAndUsedbyAnnotations PHP 메소드

processUsesAndUsedbyAnnotations() 개인적인 메소드

private processUsesAndUsedbyAnnotations ( string $value, ApiGen\Contracts\Parser\Reflection\ElementReflectionInterface $reflectionElement ) : string
$value string
$reflectionElement ApiGen\Contracts\Parser\Reflection\ElementReflectionInterface
리턴 string
    private function processUsesAndUsedbyAnnotations($value, ElementReflectionInterface $reflectionElement)
    {
        list($link, $description) = Strings::split($value);
        $separator = $reflectionElement instanceof ClassReflectionInterface || !$description ? ' ' : '<br>';
        if ($this->elementResolver->resolveElement($link, $reflectionElement) !== null) {
            $value = $this->typeLinks($link, $reflectionElement) . $separator . $description;
            return trim($value);
        }
        return null;
    }