1 | <?php |
||
17 | class JsonFormatter implements FormatterInterface |
||
18 | { |
||
19 | |||
20 | /** |
||
21 | * @param FeedInterface $feed |
||
22 | * @return string |
||
23 | */ |
||
24 | 1 | public function toString(FeedInterface $feed) |
|
28 | |||
29 | /** |
||
30 | * @param FeedInterface $feed |
||
31 | * @return array |
||
32 | */ |
||
33 | 1 | public function toArray(FeedInterface $feed) |
|
45 | |||
46 | /** |
||
47 | * @param FeedInterface $feed |
||
48 | * @return \Generator |
||
49 | */ |
||
50 | 1 | public function itemsToArray(FeedInterface $feed) |
|
56 | |||
57 | /** |
||
58 | * @param Feed\ItemInterface $item |
||
59 | * @return array |
||
60 | */ |
||
61 | 1 | public function itemToArray(Feed\ItemInterface $item) |
|
70 | |||
71 | /** |
||
72 | * @param Feed\ItemInterface $item |
||
73 | * @return array |
||
74 | */ |
||
75 | 1 | public function itemToBaseArray(Feed\ItemInterface $item) |
|
85 | |||
86 | /** |
||
87 | * @param $string |
||
88 | * @return bool |
||
89 | */ |
||
90 | 2 | public function isHtml($string) |
|
94 | |||
95 | /** |
||
96 | * @param Feed\ItemInterface $item |
||
97 | * @param array $array |
||
98 | * @return array |
||
99 | */ |
||
100 | 1 | public function handleAuthor(Feed\ItemInterface $item, array &$array) |
|
111 | |||
112 | /** |
||
113 | * @param Feed\ItemInterface $item |
||
114 | * @param array $array |
||
115 | * @return array |
||
116 | */ |
||
117 | 1 | public function handleMedia(Feed\ItemInterface $item, array &$array) |
|
125 | |||
126 | /** |
||
127 | * @param Feed\ItemInterface $item |
||
128 | * @param array $array |
||
129 | * @return array |
||
130 | */ |
||
131 | 1 | public function handleDate(Feed\ItemInterface $item, array &$array) |
|
139 | } |
||
140 |