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) |
|
100 | |||
101 | /** |
||
102 | * @param RuleSet $ruleSet |
||
103 | * @param NodeInterface $node |
||
104 | * @return array|\ArrayIterator |
||
105 | */ |
||
106 | 6 | public function getAllRules(RuleSet $ruleSet, NodeInterface $node) |
|
116 | |||
117 | /** |
||
118 | * @return \DOMDocument |
||
119 | */ |
||
120 | 7 | public function getEmptyDocument() |
|
124 | |||
125 | /** |
||
126 | * @return \DOMDocument |
||
127 | */ |
||
128 | 6 | public function getDocument() |
|
134 | |||
135 | /** |
||
136 | * @param FeedInterface $feed |
||
137 | * @return string |
||
138 | */ |
||
139 | 1 | public function toString(FeedInterface $feed) |
|
145 | |||
146 | /** |
||
147 | * @param FeedInterface $feed |
||
148 | * @return \DomDocument |
||
149 | */ |
||
150 | 4 | public function toDom(FeedInterface $feed) |
|
159 | |||
160 | /** |
||
161 | * @param \DOMDocument $document |
||
162 | * @param FeedInterface $feed |
||
163 | * @return $this |
||
164 | */ |
||
165 | 5 | public function setItems(\DOMDocument $document, FeedInterface $feed) |
|
173 | } |
||
174 |