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

annotation() public method

public annotation ( string $value, string $name, ApiGen\Contracts\Parser\Reflection\ElementReflectionInterface $reflectionElement ) : string
$value string
$name string
$reflectionElement ApiGen\Contracts\Parser\Reflection\ElementReflectionInterface
return string
    public function annotation($value, $name, ElementReflectionInterface $reflectionElement)
    {
        $annotationProcessors = ['return' => $this->processReturnAnnotations($value, $reflectionElement), 'throws' => $this->processThrowsAnnotations($value, $reflectionElement), 'license' => $this->processLicenseAnnotations($value), 'link' => $this->processLinkAnnotations($value), 'see' => $this->processSeeAnnotations($value, $reflectionElement), 'uses' => $this->processUsesAndUsedbyAnnotations($value, $reflectionElement), 'usedby' => $this->processUsesAndUsedbyAnnotations($value, $reflectionElement)];
        if (isset($annotationProcessors[$name])) {
            return $annotationProcessors[$name];
        }
        return $this->doc($value, $reflectionElement);
    }