Properties

$node

$node : \DOMNode

Type

\DOMNode

Methods

__construct()

__construct(\DOMNode  $node) 

Parameters

\DOMNode $node

isBlock()

isBlock() : boolean

Returns

boolean

isText()

isText() : boolean

Returns

boolean

isWhitespace()

isWhitespace() : boolean

Returns

boolean

getTagName()

getTagName() : string

Returns

string

getValue()

getValue() : string

Returns

string

hasChildren()

hasChildren() : boolean

Returns

boolean

isDescendantOf()

isDescendantOf(array<mixed,string>|string  $tagNames) : boolean

Parameters

array<mixed,string>|string $tagNames

Returns

boolean

setFinalMarkdown()

setFinalMarkdown(string  $markdown) 

Parameters

string $markdown

getChildrenAsString()

getChildrenAsString() : string

Returns

string

getSiblingPosition()

getSiblingPosition() : integer

Returns

integer

getListItemLevel()

getListItemLevel() : integer

Returns

integer

getAttribute()

getAttribute(string  $name) : string

Parameters

string $name

Returns

string

getNextNode()

getNextNode(\DomNode  $node, boolean  $checkChildren = true) : \DomNode|null

Parameters

\DomNode $node
boolean $checkChildren

Returns

\DomNode|null