Table of Contents
-
$environment
: Environment
-
$lexer
: SpanLexer
-
$prefix
: string
-
$tokenId
: int
-
$tokens
: array<string|int, SpanToken>
-
__construct()
: mixed
-
getTokens()
: array<string|int, SpanToken>
-
process()
: string
-
addToken()
: void
-
createAnonymousReference()
: string
-
createNamedReference()
: string
-
generateId()
: string
-
parseEmbeddedUrl()
: string|null
-
parseInternalReference()
: string
-
parseNamedReference()
: string
-
parseTokens()
: string
-
replaceLiterals()
: string
-
replaceReferences()
: string
-
replaceStandaloneEmailAddresses()
: string
-
replaceStandaloneHyperlinks()
: string
-
rollback()
: void
$environment
private
Environment
$environment
$lexer
private
SpanLexer
$lexer
$prefix
private
string
$prefix
$tokenId
private
int
$tokenId
$tokens
private
array<string|int, SpanToken>
$tokens
= []
__construct()
public
__construct(Environment $environment) : mixed
Parameters
-
$environment
: Environment
-
Return values
mixed
—
getTokens()
public
getTokens() : array<string|int, SpanToken>
Return values
array<string|int, SpanToken>
—
process()
public
process(string $span) : string
Parameters
-
$span
: string
-
Return values
string
—
addToken()
private
addToken(string $type, string $id, array<string|int, mixed> $tokenData) : void
Parameters
-
$type
: string
-
-
$id
: string
-
-
$tokenData
: array<string|int, mixed>
-
Return values
void
—
createAnonymousReference()
private
createAnonymousReference(string $link) : string
Parameters
-
$link
: string
-
Return values
string
—
createNamedReference()
private
createNamedReference(string $link[, string|null $url = null ]) : string
Parameters
-
$link
: string
-
-
$url
: string|null
= null
-
Return values
string
—
generateId()
private
generateId() : string
Return values
string
—
parseEmbeddedUrl()
private
parseEmbeddedUrl() : string|null
Return values
string|null
—
parseInternalReference()
private
parseInternalReference() : string
Return values
string
—
parseNamedReference()
private
parseNamedReference() : string
Return values
string
—
parseTokens()
private
parseTokens() : string
Return values
string
—
replaceLiterals()
private
replaceLiterals(string $span) : string
Parameters
-
$span
: string
-
Return values
string
—
replaceReferences()
private
replaceReferences(string $span) : string
Parameters
-
$span
: string
-
Return values
string
—
replaceStandaloneEmailAddresses()
private
replaceStandaloneEmailAddresses(string $span) : string
Parameters
-
$span
: string
-
Return values
string
—
replaceStandaloneHyperlinks()
private
replaceStandaloneHyperlinks(string $span) : string
Parameters
-
$span
: string
-
Return values
string
—
rollback()
private
rollback(int $position) : void
Parameters
-
$position
: int
-
Return values
void
—