1 | <?php declare(strict_types=1); |
||
18 | class LinkNode extends RuleAbstract |
||
19 | { |
||
20 | const NODE_NAME = 'link'; |
||
21 | |||
22 | /** |
||
23 | * @var \FeedIo\RuleSet |
||
24 | */ |
||
25 | protected $ruleSet; |
||
26 | |||
27 | /** |
||
28 | * @param string $nodeName |
||
29 | */ |
||
30 | 9 | public function __construct(string $nodeName = null) |
|
38 | |||
39 | /** |
||
40 | * @param NodeInterface $node |
||
41 | * @param \DOMElement $element |
||
42 | * @return mixed |
||
43 | */ |
||
44 | 5 | public function setProperty(NodeInterface $node, \DOMElement $element) : void |
|
52 | |||
53 | /** |
||
54 | * @inheritDoc |
||
55 | */ |
||
56 | 2 | protected function hasValue(NodeInterface $node) : bool |
|
60 | |||
61 | |||
62 | /** |
||
63 | * @inheritDoc |
||
64 | */ |
||
65 | 2 | protected function addElement(\DomDocument $document, \DOMElement $rootElement, NodeInterface $node) : void |
|
73 | } |
||
74 |