MarkupLanguageParser
in package
implements
MarkupLanguageParser
FinalYes
Table of Contents
Interfaces
Properties
- $document : DocumentNode|null
- $logger : LoggerInterface
- $markdownParser : MarkdownParser
- $parserContext : ParserContext|null
- $parsers : iterable<string|int, mixed>
Methods
- __construct() : mixed
- getDocument() : DocumentNode
- getParserContext() : ParserContext
- parse() : DocumentNode
- supports() : bool
- parseDocument() : DocumentNode
Properties
$document
private
DocumentNode|null
$document
= null
$logger read-only
private
LoggerInterface
$logger
$markdownParser read-only
private
MarkdownParser
$markdownParser
$parserContext
private
ParserContext|null
$parserContext
= null
$parsers read-only
private
iterable<string|int, mixed>
$parsers
Methods
__construct()
public
__construct(LoggerInterface $logger, iterable<string|int, ParserInterface<string|int, Node>> $parsers) : mixed
Parameters
- $logger : LoggerInterface
- $parsers : iterable<string|int, ParserInterface<string|int, Node>>
getDocument()
public
getDocument() : DocumentNode
Return values
DocumentNodegetParserContext()
public
getParserContext() : ParserContext
Return values
ParserContextparse()
public
parse(ParserContext $parserContext, string $contents) : DocumentNode
Parameters
- $parserContext : ParserContext
- $contents : string
Return values
DocumentNodesupports()
public
supports(string $inputFormat) : bool
Parameters
- $inputFormat : string
Return values
boolparseDocument()
private
parseDocument(NodeWalker $walker, string $hash) : DocumentNode
Parameters
- $walker : NodeWalker
- $hash : string