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

highlightPhp() public method

public highlightPhp ( string $source, ApiGen\Contracts\Parser\Reflection\ElementReflectionInterface $reflectionElement ) : string
$source string
$reflectionElement ApiGen\Contracts\Parser\Reflection\ElementReflectionInterface
return string
    public function highlightPhp($source, ElementReflectionInterface $reflectionElement)
    {
        return $this->resolveLink($this->getTypeName($source), $reflectionElement) ?: $this->highlighter->highlight((string) $source);
    }