Skip to content

Commit 4db89d1

Browse files
author
Stanislav Idolov
authored
ENGCOM-2358: [Backport] Fixed type hints and docs for Downloadable Samples block #16825
2 parents 7d62c64 + e2a36aa commit 4db89d1

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)