ApiClassTextRole
extends AbstractReferenceTextRole
in package
FinalYes
Table of Contents
Constants
Properties
- $useRawContent : bool
- $anchorReducer : AnchorNormalizer
- $genericLinkProvider : GenericLinkProvider
- $interlinkParser : InterlinkParser
- $referenceRegex : string
- https://regex101.com/r/KadqKx/1
Methods
- __construct() : mixed
- getAliases() : array<string|int, string>
- getName() : string
- processNode() : AbstractLinkInlineNode
- createNode() : ReferenceNode
- extractEmbeddedReference() : ReferenceData
Constants
NAME
public
final mixed
NAME
= 'api-class'
TYPE
public
final mixed
TYPE
= 'api-class'
Properties
$useRawContent
protected
bool
$useRawContent
= true
$anchorReducer read-only
private
AnchorNormalizer
$anchorReducer
$genericLinkProvider read-only
private
GenericLinkProvider
$genericLinkProvider
$interlinkParser read-only
private
InterlinkParser
$interlinkParser
$referenceRegex
https://regex101.com/r/KadqKx/1
private
string
$referenceRegex
= '/^(.*?)(<([^<]+)>)?$/s'
Methods
__construct()
public
__construct(GenericLinkProvider $genericLinkProvider, AnchorNormalizer $anchorReducer, InterlinkParser $interlinkParser) : mixed
Parameters
- $genericLinkProvider : GenericLinkProvider
- $anchorReducer : AnchorNormalizer
- $interlinkParser : InterlinkParser
getAliases()
public
getAliases() : array<string|int, string>
Tags
Return values
array<string|int, string>getName()
public
getName() : string
Return values
stringprocessNode()
public
processNode(DocumentParserContext $documentParserContext, string $role, string $content, string $rawContent) : AbstractLinkInlineNode
Parameters
- $documentParserContext : DocumentParserContext
- $role : string
- $content : string
-
the content with backslash escapes removed per spec
- $rawContent : string
-
the raw content, including backslash escapes
Return values
AbstractLinkInlineNodecreateNode()
protected
createNode(string $referenceTarget, string|null $referenceName, string $role) : ReferenceNode
Parameters
- $referenceTarget : string
- $referenceName : string|null
- $role : string
Return values
ReferenceNodeextractEmbeddedReference()
private
extractEmbeddedReference(string $text) : ReferenceData
Parameters
- $text : string