Skip to content

Commit 4897675

Browse files
author
Yu Tang
committed
MAGETWO-28253: Downloadable Integration API
- Change parameter name from productSku to sku to be consistent with webapi.xml
1 parent 54d63c7 commit 4897675

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

app/code/Magento/Downloadable/Api/SampleRepositoryInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ interface SampleRepositoryInterface
1212
/**
1313
* Update downloadable sample of the given product
1414
*
15-
* @param string $productSku
15+
* @param string $sku
1616
* @param \Magento\Downloadable\Api\Data\SampleInterface $sample
1717
* @param bool $isGlobalScopeContent
1818
* @return int
1919
*/
2020
public function save(
21-
$productSku,
21+
$sku,
2222
SampleInterface $sample,
2323
$isGlobalScopeContent = false
2424
);

app/code/Magento/Downloadable/Model/SampleRepository.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,18 +73,18 @@ public function __construct(
7373
/**
7474
* Update downloadable sample of the given product
7575
*
76-
* @param string $productSku
76+
* @param string $sku
7777
* @param \Magento\Downloadable\Api\Data\SampleInterface $sample
7878
* @param bool $isGlobalScopeContent
7979
* @return int
8080
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
8181
*/
8282
public function save(
83-
$productSku,
83+
$sku,
8484
SampleInterface $sample,
8585
$isGlobalScopeContent = false
8686
) {
87-
$product = $this->productRepository->get($productSku, true);
87+
$product = $this->productRepository->get($sku, true);
8888

8989
$sampleId = $sample->getId();
9090
if ($sampleId) {

0 commit comments

Comments
 (0)