Skip to content

Commit 29348c2

Browse files
author
Stanislav Idolov
authored
ENGCOM-2365: [Forwardport] Fixed type hints and docs for Downloadable Samples block #16824
2 parents 3df1425 + 32a959f commit 29348c2

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
@@ -6,7 +6,8 @@
66

77
namespace Magento\Downloadable\Block\Catalog\Product;
88

9-
use Magento\Downloadable\Model\ResourceModel\Sample;
9+
use Magento\Downloadable\Model\ResourceModel\Sample\Collection as SampleCollection;
10+
use Magento\Downloadable\Api\Data\SampleInterface;
1011

1112
/**
1213
* Downloadable Product Samples part block
@@ -29,15 +30,15 @@ public function hasSamples()
2930
/**
3031
* Get downloadable product samples
3132
*
32-
* @return array
33+
* @return SampleCollection
3334
*/
3435
public function getSamples()
3536
{
3637
return $this->getProduct()->getTypeInstance()->getSamples($this->getProduct());
3738
}
3839

3940
/**
40-
* @param Sample $sample
41+
* @param SampleInterface $sample
4142
* @return string
4243
*/
4344
public function getSampleUrl($sample)

0 commit comments

Comments
 (0)