1 | <?php |
||
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 | * @return $this |
||
26 | */ |
||
27 | 7 | public function setProperty(NodeInterface $node, \DOMElement $element) |
|
33 | |||
34 | /** |
||
35 | * Tells if the node contains the expected value |
||
36 | * |
||
37 | * @param NodeInterface $node |
||
38 | * @return bool |
||
39 | */ |
||
40 | 7 | protected function hasValue(NodeInterface $node) : bool |
|
44 | |||
45 | /** |
||
46 | * Creates and adds the element(s) to the docuement's rootElement |
||
47 | * |
||
48 | * @param \DomDocument $document |
||
49 | * @param \DOMElement $rootElement |
||
50 | * @param NodeInterface $node |
||
51 | */ |
||
52 | 5 | protected function addElement(\DomDocument $document, \DOMElement $rootElement, NodeInterface $node) : void |
|
58 | } |
||
59 |