Skip to content

Commit d6605b9

Browse files
committed
MAGETWO-87004: Graphql Downloadable product implementation
- refactoring
1 parent bce6f0a commit d6605b9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/code/Magento/DownloadableGraphQl/Model/Resolver/Products/DataProvider/Product/Formatter/DownloadableOptions.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
use Magento\Downloadable\Model\ResourceModel\Link\Collection as LinkCollection;
1717

1818
/**
19-
* Post formatting plugin to continue formatting data for downloadable type products
19+
* Format for downloadable product types
2020
*/
2121
class DownloadableOptions implements FormatterInterface
2222
{
@@ -59,7 +59,7 @@ public function __construct(
5959
}
6060

6161
/**
62-
* Add downloadable options and options to configurable types
62+
* Add downloadable options to configurable types
6363
*
6464
* {@inheritdoc}
6565
*/
@@ -85,10 +85,10 @@ public function format(Product $product, array $productData = [])
8585
/**
8686
* Format links from collection as array
8787
*
88-
* @param \Magento\Downloadable\Api\Data\LinkInterface[] $links
88+
* @param LinkCollection $links
8989
* @return array
9090
*/
91-
private function formatLinks($links)
91+
private function formatLinks(LinkCollection $links)
9292
{
9393
$resultData = [];
9494
foreach ($links as $linkKey => $link) {

0 commit comments

Comments
 (0)