function Traverser::__construct
Same name in this branch
- 11.1.x vendor/masterminds/html5/src/HTML5/Serializer/Traverser.php \Masterminds\HTML5\Serializer\Traverser::__construct()
Class constructor. Available options are:
- skipStartingNode: if true the starting node will be skipped
- passParentNode: if true the parent node of each node will be passed as second argument when the functions are called. Note that the parent node is calculated during traversing, so for the starting node it will always be null.
Parameters
array $options Options array:
File
-
vendor/
mck89/ peast/ lib/ Peast/ Traverser.php, line 66
Class
- Traverser
- Nodes traverser class
Namespace
PeastCode
public function __construct($options = array()) {
if (isset($options["passParentNode"])) {
$this->passParentNode = (bool) $options["passParentNode"];
}
if (isset($options["skipStartingNode"])) {
$this->skipStartingNode = (bool) $options["skipStartingNode"];
}
}