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(
2424
2525 /**
2626 * Returns the formatted feed content
27+ *
28+ * @param string $format
2729 *
2830 * @return string
2931 */
Original file line number Diff line number Diff line change @@ -45,12 +45,7 @@ public function __construct(
4545 }
4646
4747 /**
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}
5449 */
5550 public function create (
5651 array $ data ,
@@ -63,7 +58,7 @@ public function create(
6358 );
6459 }
6560
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 )) {
6762 throw new \Magento \Framework \Exception \InputException (
6863 __ ('Wrong format handler type ' ),
6964 $ e
Original file line number Diff line number Diff line change 55 */
66namespace Magento \Framework \App ;
77
8+ /**
9+ * Feed factory interface
10+ */
811interface FeedFactoryInterface
912{
10-
13+ /**
14+ * RSS feed input format
15+ */
1116 const FORMAT_RSS = 'rss ' ;
1217
1318 /**
1419 * Returns FeedInterface object from a custom array
1520 *
1621 * @throws \Magento\Framework\Exception\InputException
22+ * @throws \Magento\Framework\Exception\RuntimeException
1723 * @param array $data
1824 * @param string $format
1925 * @return FeedInterface
Original file line number Diff line number Diff line change 55 */
66namespace Magento \Framework \App ;
77
8+ /**
9+ * Feed interface
10+ */
811interface FeedInterface
912{
13+ /**
14+ * XML feed output format
15+ */
1016 const FORMAT_XML = 'xml ' ;
1117
1218 /**
19+ * @param string $format
20+ *
1321 * @return string
1422 */
1523 public function getFormattedContentAs (
You can’t perform that action at this time.
0 commit comments