DefaultNodeFactory
implements
NodeFactory
Interfaces, Classes and Traits
- NodeFactory
Table of Contents
-
$eventManager
: EventManager
-
$nodeInstantiators
: array<string|int, NodeInstantiator>
-
__construct()
: mixed
-
createAnchorNode()
: AnchorNode
-
createBlockNode()
: BlockNode
-
createCallableNode()
: CallableNode
-
createCodeNode()
: CodeNode
-
createDefinitionListNode()
: DefinitionListNode
-
createDocumentNode()
: DocumentNode
-
createDummyNode()
: DummyNode
-
createFigureNode()
: FigureNode
-
createFromRegistry()
: self
-
createImageNode()
: ImageNode
-
createListNode()
: ListNode
-
createMainNode()
: MainNode
-
createMetaNode()
: MetaNode
-
createParagraphNode()
: ParagraphNode
-
createQuoteNode()
: QuoteNode
-
createRawNode()
: RawNode
-
createSectionBeginNode()
: SectionBeginNode
-
createSectionEndNode()
: SectionEndNode
-
createSeparatorNode()
: SeparatorNode
-
createSpanNode()
: SpanNode
-
createTableNode()
: TableNode
-
createTitleNode()
: TitleNode
-
createTocNode()
: TocNode
-
createWrapperNode()
: WrapperNode
-
create()
: Node
-
getNodeInstantiator()
: NodeInstantiator
$eventManager
private
EventManager
$eventManager
$nodeInstantiators
private
array<string|int, NodeInstantiator>
$nodeInstantiators
= []
__construct()
public
__construct(EventManager $eventManager, NodeInstantiator ...$nodeInstantiators) : mixed
Parameters
-
$eventManager
: EventManager
-
-
$nodeInstantiators
: NodeInstantiator
-
Return values
mixed
—
createAnchorNode()
public
createAnchorNode([string|null $value = null ]) : AnchorNode
Parameters
-
$value
: string|null
= null
-
Return values
AnchorNode
—
createBlockNode()
public
createBlockNode(array<string|int, string> $lines) : BlockNode
Parameters
-
$lines
: array<string|int, string>
-
Return values
BlockNode
—
createCallableNode()
public
createCallableNode(callable $callable) : CallableNode
Parameters
-
$callable
: callable
-
Return values
CallableNode
—
createCodeNode()
public
createCodeNode(array<string|int, string> $lines) : CodeNode
Parameters
-
$lines
: array<string|int, string>
-
Return values
CodeNode
—
createDefinitionListNode()
public
createDefinitionListNode(DefinitionList $definitionList) : DefinitionListNode
Parameters
-
$definitionList
: DefinitionList
-
Return values
DefinitionListNode
—
createDocumentNode()
public
createDocumentNode(Environment $environment) : DocumentNode
Parameters
-
$environment
: Environment
-
Return values
DocumentNode
—
createDummyNode()
public
createDummyNode(array<string|int, mixed> $data) : DummyNode
Parameters
-
$data
: array<string|int, mixed>
-
Return values
DummyNode
—
public
createFigureNode(ImageNode $image[, Node|null $document = null ]) : FigureNode
Parameters
-
$image
: ImageNode
-
-
$document
: Node|null
= null
-
Return values
FigureNode
—
createFromRegistry()
public
static createFromRegistry(EventManager $eventManager, Format $format, Environment $environment, array<string, string> $nodeRegistry) : self
Parameters
-
$eventManager
: EventManager
-
-
$format
: Format
-
-
$environment
: Environment
-
-
$nodeRegistry
: array<string, string>
-
Return values
self
—
createImageNode()
public
createImageNode(string $url[, array<string|int, string> $options = [] ]) : ImageNode
Parameters
-
$url
: string
-
-
$options
: array<string|int, string>
= []
-
Return values
ImageNode
—
createListNode()
public
createListNode() : ListNode
Return values
ListNode
—
createMainNode()
public
createMainNode() : MainNode
Return values
MainNode
—
public
createMetaNode(string $key, string $value) : MetaNode
Parameters
-
$key
: string
-
-
$value
: string
-
Return values
MetaNode
—
createParagraphNode()
public
createParagraphNode(SpanNode $span) : ParagraphNode
Parameters
-
$span
: SpanNode
-
Return values
ParagraphNode
—
createQuoteNode()
public
createQuoteNode(DocumentNode $documentNode) : QuoteNode
Parameters
-
$documentNode
: DocumentNode
-
Return values
QuoteNode
—
createRawNode()
public
createRawNode(callable $value) : RawNode
Parameters
-
$value
: callable
-
Return values
RawNode
—
createSectionBeginNode()
public
createSectionBeginNode(TitleNode $titleNode) : SectionBeginNode
Parameters
-
$titleNode
: TitleNode
-
Return values
SectionBeginNode
—
createSectionEndNode()
public
createSectionEndNode(TitleNode $titleNode) : SectionEndNode
Parameters
-
$titleNode
: TitleNode
-
Return values
SectionEndNode
—
createSeparatorNode()
public
createSeparatorNode(int $level) : SeparatorNode
Parameters
-
$level
: int
-
Return values
SeparatorNode
—
createSpanNode()
public
createSpanNode(Parser $parser, string|array<string|int, string>|SpanNode $span) : SpanNode
Parameters
-
$parser
: Parser
-
-
$span
: string|array<string|int, string>|SpanNode
-
Return values
SpanNode
—
createTableNode()
public
createTableNode(TableSeparatorLineConfig $separatorLineConfig, string $type, LineChecker $lineChecker) : TableNode
Parameters
-
$separatorLineConfig
: TableSeparatorLineConfig
-
-
$type
: string
-
-
$lineChecker
: LineChecker
-
Return values
TableNode
—
createTitleNode()
public
createTitleNode(Node $value, int $level, string $token) : TitleNode
Parameters
-
$value
: Node
-
-
$level
: int
-
-
$token
: string
-
Return values
TitleNode
—
createTocNode()
public
createTocNode(Environment $environment, array<string|int, string> $files, array<string|int, string> $options) : TocNode
Parameters
-
$environment
: Environment
-
-
$files
: array<string|int, string>
-
-
$options
: array<string|int, string>
-
Return values
TocNode
—
createWrapperNode()
public
createWrapperNode(Node|null $node[, string|callable $before = '' ][, string|callable $after = '' ]) : WrapperNode
Parameters
-
$node
: Node|null
-
-
$before
: string|callable
= ''
-
-
$after
: string|callable
= ''
-
Return values
WrapperNode
—
create()
private
create(string $type, array<string|int, mixed> $arguments) : Node
Parameters
-
$type
: string
-
-
$arguments
: array<string|int, mixed>
-
Return values
Node
—
getNodeInstantiator()
private
getNodeInstantiator(string $type) : NodeInstantiator
Parameters
-
$type
: string
-
Return values
NodeInstantiator
—