1 | <?php declare(strict_types=1); |
||
16 | class Title extends RuleAbstract |
||
17 | { |
||
18 | const NODE_NAME = 'title'; |
||
19 | |||
20 | /** |
||
21 | * Sets the accurate $item property according to the DomElement content |
||
22 | * |
||
23 | * @param NodeInterface $node |
||
24 | * @param \DOMElement $element |
||
25 | */ |
||
26 | 8 | public function setProperty(NodeInterface $node, \DOMElement $element) : void |
|
30 | |||
31 | /** |
||
32 | * Tells if the node contains the expected value |
||
33 | * |
||
34 | * @param NodeInterface $node |
||
35 | * @return bool |
||
36 | */ |
||
37 | 7 | protected function hasValue(NodeInterface $node) : bool |
|
41 | |||
42 | /** |
||
43 | * Creates and adds the element(s) to the docuement's rootElement |
||
44 | * |
||
45 | * @param \DomDocument $document |
||
46 | * @param \DOMElement $rootElement |
||
47 | * @param NodeInterface $node |
||
48 | */ |
||
49 | 5 | protected function addElement(\DomDocument $document, \DOMElement $rootElement, NodeInterface $node) : void |
|
55 | } |
||
56 |