Skip to content

Commit e2a36aa

Browse files
ENGCOM-2358: [Backport] Fixed type hints and docs for Downloadable Samples block #16825
- Merge Pull Request #16825 from ronak2ram/magento2:2.1-develop-PR-port-16408 - Merged commits: 1. 6698036 2. 82150c6
2 parents 7d62c64 + 82150c6 commit e2a36aa

File tree

1 file changed

+4
-3
lines changed
  • app/code/Magento/Downloadable/Block/Catalog/Product

1 file changed

+4
-3
lines changed

app/code/Magento/Downloadable/Block/Catalog/Product/Samples.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88

99
namespace Magento\Downloadable\Block\Catalog\Product;
1010

11-
use Magento\Downloadable\Model\ResourceModel\Sample;
11+
use Magento\Downloadable\Model\ResourceModel\Sample\Collection as SampleCollection;
12+
use Magento\Downloadable\Api\Data\SampleInterface;
1213

1314
/**
1415
* Downloadable Product Samples part block
@@ -30,15 +31,15 @@ public function hasSamples()
3031
/**
3132
* Get downloadable product samples
3233
*
33-
* @return array
34+
* @return SampleCollection
3435
*/
3536
public function getSamples()
3637
{
3738
return $this->getProduct()->getTypeInstance()->getSamples($this->getProduct());
3839
}
3940

4041
/**
41-
* @param Sample $sample
42+
* @param SampleInterface $sample
4243
* @return string
4344
*/
4445
public function getSampleUrl($sample)

0 commit comments

Comments
 (0)