1 | <?php |
||
17 | class Structure extends RuleAbstract |
||
18 | { |
||
19 | const NODE_NAME = 'structure'; |
||
20 | |||
21 | /** |
||
22 | * @var \FeedIo\RuleSet |
||
23 | */ |
||
24 | protected $ruleSet; |
||
25 | |||
26 | /** |
||
27 | * @param string $nodeName |
||
28 | * @param RuleSet $ruleSet |
||
29 | */ |
||
30 | 6 | public function __construct($nodeName = null, $ruleSet = null) |
|
36 | |||
37 | /** |
||
38 | * @param NodeInterface $node |
||
39 | * @param \DOMElement $element |
||
40 | * @return mixed |
||
41 | */ |
||
42 | 2 | public function setProperty(NodeInterface $node, \DOMElement $element) |
|
53 | |||
54 | /** |
||
55 | * creates the accurate DomElement content according to the $item's property |
||
56 | * |
||
57 | * @param \DomDocument $document |
||
58 | * @param NodeInterface $node |
||
59 | * @return \DomElement |
||
60 | */ |
||
61 | 1 | public function createElement(\DomDocument $document, NodeInterface $node) |
|
70 | } |
||
71 |