Skip to content

Commit f7e27bd

Browse files
author
Stanislav Idolov
authored
ENGCOM-2145: Fixed type hints and docs for Downloadable Samples block #16408
2 parents 989b0d4 + bc0497a commit f7e27bd

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
@@ -31,15 +32,15 @@ public function hasSamples()
3132
/**
3233
* Get downloadable product samples
3334
*
34-
* @return array
35+
* @return SampleCollection
3536
*/
3637
public function getSamples()
3738
{
3839
return $this->getProduct()->getTypeInstance()->getSamples($this->getProduct());
3940
}
4041

4142
/**
42-
* @param Sample $sample
43+
* @param SampleInterface $sample
4344
* @return string
4445
*/
4546
public function getSampleUrl($sample)

0 commit comments

Comments
 (0)