1 | <?php |
||
27 | class XmlFormatter implements FormatterInterface |
||
28 | { |
||
29 | |||
30 | /** |
||
31 | * @var XmlAbstract |
||
32 | */ |
||
33 | protected $standard; |
||
34 | |||
35 | /** |
||
36 | * @param XmlAbstract $standard |
||
37 | */ |
||
38 | 8 | public function __construct(XmlAbstract $standard) |
|
42 | |||
43 | /** |
||
44 | * @param \DOMDocument $document |
||
45 | * @param FeedInterface $feed |
||
46 | * @return $this |
||
47 | */ |
||
48 | 4 | public function setHeaders(\DOMDocument $document, FeedInterface $feed) |
|
58 | |||
59 | /** |
||
60 | * @param \DOMDocument $document |
||
61 | * @param NodeInterface $node |
||
62 | * @return $this |
||
63 | */ |
||
64 | 3 | public function addItem(\DOMDocument $document, NodeInterface $node) |
|
78 | |||
79 | /** |
||
80 | * @param RuleSet $ruleSet |
||
81 | * @param \DOMDocument $document |
||
82 | * @param NodeInterface $node |
||
83 | * @return array |
||
84 | */ |
||
85 | 5 | public function buildElements(RuleSet $ruleSet, \DOMDocument $document, NodeInterface $node) |
|
95 | |||
96 | /** |
||
97 | * @param RuleSet $ruleSet |
||
98 | * @param NodeInterface $node |
||
99 | * @return array|\ArrayIterator |
||
100 | */ |
||
101 | 6 | public function getAllRules(RuleSet $ruleSet, NodeInterface $node) |
|
111 | |||
112 | /** |
||
113 | * @return \DOMDocument |
||
114 | */ |
||
115 | 7 | public function getEmptyDocument() |
|
119 | |||
120 | /** |
||
121 | * @return \DOMDocument |
||
122 | */ |
||
123 | 6 | public function getDocument() |
|
129 | |||
130 | /** |
||
131 | * @param FeedInterface $feed |
||
132 | * @return string |
||
133 | */ |
||
134 | 1 | public function toString(FeedInterface $feed) |
|
140 | |||
141 | /** |
||
142 | * @param FeedInterface $feed |
||
143 | * @return \DomDocument |
||
144 | */ |
||
145 | 4 | public function toDom(FeedInterface $feed) |
|
154 | |||
155 | /** |
||
156 | * @param \DOMDocument $document |
||
157 | * @param FeedInterface $feed |
||
158 | * @return $this |
||
159 | */ |
||
160 | 5 | public function setItems(\DOMDocument $document, FeedInterface $feed) |
|
168 | } |
||
169 |