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
$container
private
AbstractBlock
$container
Tags
$cursor
private
Cursor
$cursor
Tags
$delimiterStack
private
DelimiterStack
$delimiterStack
Tags
$matches
private
array<string|int, string>
$matches
Tags
$referenceMap
private
ReferenceMapInterface
$referenceMap
Tags
Methods
__construct()
public
__construct(Cursor $contents, AbstractBlock $container, ReferenceMapInterface $referenceMap[, int $maxDelimitersPerLine = PHP_INT_MAX ]) : mixed
Parameters
- $contents : Cursor
- $container : AbstractBlock
- $referenceMap : ReferenceMapInterface
- $maxDelimitersPerLine : int = PHP_INT_MAX
getContainer()
public
getContainer() : AbstractBlock
Return values
AbstractBlockgetCursor()
public
getCursor() : Cursor
Return values
CursorgetDelimiterStack()
public
getDelimiterStack() : DelimiterStack
Return values
DelimiterStackgetFullMatch()
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
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
getReferenceMap()
public
getReferenceMap() : ReferenceMapInterface
Return values
ReferenceMapInterfacegetSubMatches()
public
getSubMatches() : array<string|int, string>
Return values
array<string|int, string>withMatches()
public
withMatches(array<string|int, string> $matches) : InlineParserContext
Parameters
- $matches : array<string|int, string>