Documentation

InlineParserContext
in package

FinalYes

Table of Contents

Properties

$container  : AbstractBlock
$cursor  : Cursor
$delimiterStack  : DelimiterStack
$matches  : array<string|int, string>
$referenceMap  : ReferenceMapInterface

Methods

__construct()  : mixed
getContainer()  : AbstractBlock
getCursor()  : Cursor
getDelimiterStack()  : DelimiterStack
getFullMatch()  : string
getFullMatchLength()  : int
getMatches()  : array<string|int, string>
getReferenceMap()  : ReferenceMapInterface
getSubMatches()  : array<string|int, string>
withMatches()  : InlineParserContext

Properties

$matches

private array<string|int, string> $matches
Tags
psalm-var

non-empty-array

psalm-readonly-allow-private-mutation

Methods

getFullMatch()

public getFullMatch() : string
Return values
string

The full text that matched the InlineParserMatch definition

getFullMatchLength()

public getFullMatchLength() : int
Return values
int

The length of the full match (in characters, not bytes)

getMatches()

public getMatches() : array<string|int, string>
Tags
psalm-return

non-empty-array

Return values
array<string|int, string>

Similar to preg_match(), index 0 will contain the full match, and any other array elements will be captured sub-matches

getSubMatches()

public getSubMatches() : array<string|int, string>
Return values
array<string|int, string>

        
On this page

Search results