\WebinoDraw\DomNodeTrait

Class NodeTrait

Summary

Methods
Properties
Constants
setOnReplace()
getOwnerDocument()
getParentNode()
replaceWith()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$onReplace
N/A

Properties

$onReplace

$onReplace : array<mixed,callable>

Type

array<mixed,callable>

Methods

setOnReplace()

setOnReplace(callable  $callback) : $this

Parameters

callable $callback

Returns

$this

replaceWith()

replaceWith(string  $html) : \WebinoDraw\Dom\NodeInterface

Parameters

string $html

Throws

\WebinoDraw\Exception\LogicException

Returns

\WebinoDraw\Dom\NodeInterface