1 | <?php |
||
17 | class Category extends RuleAbstract |
||
18 | { |
||
19 | const NODE_NAME = 'category'; |
||
20 | |||
21 | /** |
||
22 | * @param NodeInterface $node |
||
23 | * @param \DOMElement $element |
||
24 | * @return mixed |
||
25 | */ |
||
26 | 2 | public function setProperty(NodeInterface $node, \DOMElement $element) |
|
36 | |||
37 | /** |
||
38 | * @inheritDoc |
||
39 | */ |
||
40 | 4 | protected function hasValue(NodeInterface $node) : bool |
|
44 | |||
45 | /** |
||
46 | * @inheritDoc |
||
47 | */ |
||
48 | 4 | protected function addElement(\DomDocument $document, \DOMElement $rootElement, NodeInterface $node) : void |
|
54 | |||
55 | /** |
||
56 | * @param \DomDocument $document |
||
57 | * @param CategoryInterface $category |
||
58 | * @return \DomElement |
||
59 | */ |
||
60 | 4 | public function createCategoryElement(\DomDocument $document, CategoryInterface $category) |
|
72 | } |
||
73 |