DocumentParserContext
in package
Our document parser contains
Table of Contents
Properties
- $document : DocumentNode|null
- $nextIndentedBlockShouldBeALiteralBlock : bool
- $anonymous : array<string|int, string>
- $codeBlockDefaultLanguage : string
- $context : ParserContext
- $currentTitleLevel : int
- $links : array<string, string>
- $markupLanguageParser : MarkupLanguageParser
- $textRoleFactoryForDocument : TextRoleFactory
- $titleLetters : array<string|int, string>
Methods
- __construct() : mixed
- getCodeBlockDefaultLanguage() : string
- getContext() : ParserContext
- getDocument() : DocumentNode
- getLevel() : int
- getLinks() : array<string, string>
- getLoggerInformation() : array<string, string>
- getParser() : MarkupLanguageParser
- getProjectNode() : ProjectNode
- getTextRoleFactoryForDocument() : TextRoleFactory
- pushAnonymous() : void
- resetAnonymousStack() : void
- setCodeBlockDefaultLanguage() : void
- setDocument() : void
- setLink() : void
Properties
$document
public
DocumentNode|null
$document
= null
$nextIndentedBlockShouldBeALiteralBlock
public
bool
$nextIndentedBlockShouldBeALiteralBlock
= false
public is temporary
$anonymous
private
array<string|int, string>
$anonymous
= []
$codeBlockDefaultLanguage
private
string
$codeBlockDefaultLanguage
= ''
$context read-only
private
ParserContext
$context
$currentTitleLevel
private
int
$currentTitleLevel
$links
private
array<string, string>
$links
= []
$markupLanguageParser read-only
private
MarkupLanguageParser
$markupLanguageParser
$textRoleFactoryForDocument read-only
private
TextRoleFactory
$textRoleFactoryForDocument
$titleLetters
private
array<string|int, string>
$titleLetters
= []
Methods
__construct()
public
__construct(ParserContext $context, TextRoleFactory $textRoleFactory, MarkupLanguageParser $markupLanguageParser) : mixed
Parameters
- $context : ParserContext
- $textRoleFactory : TextRoleFactory
- $markupLanguageParser : MarkupLanguageParser
getCodeBlockDefaultLanguage()
public
getCodeBlockDefaultLanguage() : string
Return values
stringgetContext()
public
getContext() : ParserContext
Return values
ParserContextgetDocument()
public
getDocument() : DocumentNode
Return values
DocumentNodegetLevel()
public
getLevel(string $overlineLetter, string $underlineLetter) : int
Parameters
- $overlineLetter : string
- $underlineLetter : string
Return values
intgetLinks()
public
getLinks() : array<string, string>
Return values
array<string, string>getLoggerInformation()
public
getLoggerInformation() : array<string, string>
Return values
array<string, string>getParser()
public
getParser() : MarkupLanguageParser
Return values
MarkupLanguageParsergetProjectNode()
public
getProjectNode() : ProjectNode
Return values
ProjectNodegetTextRoleFactoryForDocument()
public
getTextRoleFactoryForDocument() : TextRoleFactory
Return values
TextRoleFactorypushAnonymous()
public
pushAnonymous(string $name) : void
Parameters
- $name : string
resetAnonymousStack()
public
resetAnonymousStack() : void
setCodeBlockDefaultLanguage()
public
setCodeBlockDefaultLanguage(string $codeBlockDefaultLanguage) : void
Parameters
- $codeBlockDefaultLanguage : string
setDocument()
public
setDocument(DocumentNode $document) : void
Parameters
- $document : DocumentNode
setLink()
public
setLink(string $name, string $url) : void
Parameters
- $name : string
- $url : string