function RulesInterface::setTraverser
Register the traverser used in but the rules.
Note, only one traverser can be used by the rules.
Parameters
Traverser $traverser The traverser used in the rules.:
Return value
RulesInterface $this for the current object.
1 method overrides RulesInterface::setTraverser()
- OutputRules::setTraverser in vendor/
masterminds/ html5/ src/ HTML5/ Serializer/ OutputRules.php - Register the traverser used in but the rules.
File
-
vendor/
masterminds/ html5/ src/ HTML5/ Serializer/ RulesInterface.php, line 36
Class
- RulesInterface
- To create a new rule set for writing output the RulesInterface needs to be implemented. The resulting class can be specified in the options with the key of rules.
Namespace
Masterminds\HTML5\SerializerCode
public function setTraverser(Traverser $traverser);