COMPILER_PRIORITY
COMPILER_PRIORITY = 9002
This step in the compilation process iterates through all elements and scans their descriptions for an inline `@see` or `@link` tag and resolves them to a markdown link.
$router : \phpDocumentor\Transformer\Router\RouterAbstract
$descriptor : \phpDocumentor\Descriptor\DescriptorAbstract
$elementCollection : \phpDocumentor\Descriptor\Collection
__construct(\phpDocumentor\Transformer\Router\Queue $router)
Registers the router queue with this pass.
\phpDocumentor\Transformer\Router\Queue | $router |
execute(\phpDocumentor\Descriptor\ProjectDescriptor $project) : void
Iterates through each element in the project and replaces its inline @see and @link tag with a markdown representation.
This method will execute the business logic associated with a given compiler pass and allow it to manipulate or consumer the Object Graph using the ProjectDescriptor object.
\phpDocumentor\Descriptor\ProjectDescriptor | $project | Representation of the Object Graph that can be manipulated. |
resolveSeeAndLinkTags(\phpDocumentor\Descriptor\DescriptorAbstract $descriptor) : void
Resolves all @see and @link tags in the description of the given descriptor to their markdown representation.
\phpDocumentor\Descriptor\DescriptorAbstract | $descriptor |
createLinkOrSeeTagFromRegexMatch(array<mixed,string> $match) : \phpDocumentor\Reflection\DocBlock\Tag
Creates a Tag Reflector from the given array of tag line, tag name and tag content.
array<mixed,string> | $match |
resolveElement(\phpDocumentor\Descriptor\DescriptorAbstract $element, string $link, string $description) : string
Generates a Markdown link to the given Descriptor or returns the link text if no route to the Descriptor could be matched.
\phpDocumentor\Descriptor\DescriptorAbstract | $element | |
string | $link | |
string | $description |
getLinkText(\phpDocumentor\Reflection\DocBlock\Tag\SeeTag|\phpDocumentor\Reflection\DocBlock\Tag\LinkTag $tagReflector) : string
Returns the link for the given reflector.
Because the link tag and the see tag have different methods to acquire the link text we abstract that into this method.
\phpDocumentor\Reflection\DocBlock\Tag\SeeTag|\phpDocumentor\Reflection\DocBlock\Tag\LinkTag | $tagReflector |
findElement(string $fqsen) : \phpDocumentor\Descriptor\DescriptorAbstract|null
Tries to find an element with the given FQSEN in the elements listing for this project.
string | $fqsen |