File tree Expand file tree Collapse file tree 4 files changed +19
-8
lines changed
lib/internal/Magento/Framework/App Expand file tree Collapse file tree 4 files changed +19
-8
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,8 @@ public function __construct(
24
24
25
25
/**
26
26
* Returns the formatted feed content
27
+ *
28
+ * @param string $format
27
29
*
28
30
* @return string
29
31
*/
Original file line number Diff line number Diff line change @@ -45,12 +45,7 @@ public function __construct(
45
45
}
46
46
47
47
/**
48
- * Get a new \Magento\Framework\App\FeedInterface object from a custom array
49
- *
50
- * @throws \Magento\Framework\Exception\InputException
51
- * @param array $data
52
- * @param string $format
53
- * @return \Magento\Framework\App\FeedInterface
48
+ * {@inheritdoc}
54
49
*/
55
50
public function create (
56
51
array $ data ,
@@ -63,7 +58,7 @@ public function create(
63
58
);
64
59
}
65
60
66
- if (!is_subclass_of ($ this ->formats [$ format ], ' \Magento\Framework\App\FeedInterface ' )) {
61
+ if (!is_subclass_of ($ this ->formats [$ format ], \Magento \Framework \App \FeedInterface::class )) {
67
62
throw new \Magento \Framework \Exception \InputException (
68
63
__ ('Wrong format handler type ' ),
69
64
$ e
Original file line number Diff line number Diff line change 5
5
*/
6
6
namespace Magento \Framework \App ;
7
7
8
+ /**
9
+ * Feed factory interface
10
+ */
8
11
interface FeedFactoryInterface
9
12
{
10
-
13
+ /**
14
+ * RSS feed input format
15
+ */
11
16
const FORMAT_RSS = 'rss ' ;
12
17
13
18
/**
14
19
* Returns FeedInterface object from a custom array
15
20
*
16
21
* @throws \Magento\Framework\Exception\InputException
22
+ * @throws \Magento\Framework\Exception\RuntimeException
17
23
* @param array $data
18
24
* @param string $format
19
25
* @return FeedInterface
Original file line number Diff line number Diff line change 5
5
*/
6
6
namespace Magento \Framework \App ;
7
7
8
+ /**
9
+ * Feed interface
10
+ */
8
11
interface FeedInterface
9
12
{
13
+ /**
14
+ * XML feed output format
15
+ */
10
16
const FORMAT_XML = 'xml ' ;
11
17
12
18
/**
19
+ * @param string $format
20
+ *
13
21
* @return string
14
22
*/
15
23
public function getFormattedContentAs (
You can’t perform that action at this time.
0 commit comments