EmphasisParser
extends AbstractInlineTextDecoratorParser
in package
FinalYes
Table of Contents
Properties
- $inlineParsers : iterable<string|int, mixed>
- $logger : LoggerInterface
Methods
- __construct() : mixed
- parse() : TValue
- supports() : bool
- createInlineNode() : TValue
- getType() : string
- supportsCommonMarkNode() : bool
Properties
$inlineParsers read-only
private
iterable<string|int, mixed>
$inlineParsers
$logger read-only
private
LoggerInterface
$logger
Methods
__construct()
public
__construct(iterable<string|int, AbstractInlineParser<string|int, InlineNode>> $inlineParsers, LoggerInterface $logger) : mixed
Parameters
- $inlineParsers : iterable<string|int, AbstractInlineParser<string|int, InlineNode>>
- $logger : LoggerInterface
parse()
public
parse(MarkupLanguageParser $parser, NodeWalker $walker, Node $current) : TValue
Parameters
- $parser : MarkupLanguageParser
- $walker : NodeWalker
- $current : Node
Return values
TValuesupports()
public
supports(NodeWalkerEvent $event) : bool
Parameters
- $event : NodeWalkerEvent
Return values
boolcreateInlineNode()
protected
createInlineNode(Node $commonMarkNode, string|null $content) : TValue
Parameters
- $commonMarkNode : Node
- $content : string|null
Return values
TValuegetType()
protected
getType() : string
Return values
stringsupportsCommonMarkNode()
protected
supportsCommonMarkNode(Node $commonMarkNode) : bool
Parameters
- $commonMarkNode : Node