Properties

$environment

$environment : \phpDocumentor\Guides\Environment

Type

Environment

$tokenId

$tokenId : int

Type

int

$prefix

$prefix : string

Type

string

$tokens

$tokens : \phpDocumentor\Guides\RestructuredText\Span\SpanToken[]

Type

SpanToken[]

$lexer

$lexer : \phpDocumentor\Guides\RestructuredText\Span\SpanLexer

Type

SpanLexer

Methods

__construct()

__construct(\phpDocumentor\Guides\Environment  $environment) : mixed

Parameters

\phpDocumentor\Guides\Environment $environment

Returns

mixed —

process()

process(string  $span) : string

Parameters

string $span

Returns

string —

getTokens()

getTokens() : \phpDocumentor\Guides\RestructuredText\Span\SpanToken[]

Returns

\phpDocumentor\Guides\RestructuredText\Span\SpanToken[] —

addToken()

addToken(string  $type, string  $id, array  $tokenData) : void

Parameters

string $type
string $id
array $tokenData

replaceLiterals()

replaceLiterals(string  $span) : string

Parameters

string $span

Returns

string —

createNamedReference()

createNamedReference(string  $link, ?string  $url = null) : string

Parameters

string $link
?string $url

Returns

string —

createAnonymousReference()

createAnonymousReference(string  $link) : string

Parameters

string $link

Returns

string —

replaceReferences()

replaceReferences(string  $span) : string

Parameters

string $span

Returns

string —

replaceStandaloneHyperlinks()

replaceStandaloneHyperlinks(string  $span) : string

Parameters

string $span

Returns

string —

replaceStandaloneEmailAddresses()

replaceStandaloneEmailAddresses(string  $span) : string

Parameters

string $span

Returns

string —

generateId()

generateId() : string

Returns

string —

parseTokens()

parseTokens() : string

Returns

string —

parseInternalReference()

parseInternalReference() : string

Returns

string —

parseNamedReference()

parseNamedReference() : string

Returns

string —

parseEmbeddedUrl()

parseEmbeddedUrl() : ?string

Returns

?string —

rollback()

rollback(int  $position) : void

Parameters

int $position