public function OutputRules::setTraverser in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/masterminds/html5/src/HTML5/Serializer/OutputRules.php \Masterminds\HTML5\Serializer\OutputRules::setTraverser()
Register the traverser used in but the rules.
Note, only one traverser can be used by the rules.
Parameters
\Masterminds\HTML5\Serializer\Traverser $traverser: The traverser used in the rules.
Return value
\Masterminds\HTML5\Serializer\RulesInterface $this for the current object.
Overrides RulesInterface::setTraverser
File
- vendor/
masterminds/ html5/ src/ HTML5/ Serializer/ OutputRules.php, line 177 - The rules for generating output in the serializer.
Class
- OutputRules
- Generate the output html5 based on element rules.
Namespace
Masterminds\HTML5\SerializerCode
public function setTraverser(\Masterminds\HTML5\Serializer\Traverser $traverser) {
$this->traverser = $traverser;
return $this;
}