File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
app/code/Magento/Downloadable/Block/Catalog/Product Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 6
6
7
7
namespace Magento \Downloadable \Block \Catalog \Product ;
8
8
9
- use Magento \Downloadable \Model \ResourceModel \Sample ;
9
+ use Magento \Downloadable \Model \ResourceModel \Sample \Collection as SampleCollection ;
10
+ use Magento \Downloadable \Api \Data \SampleInterface ;
10
11
11
12
/**
12
13
* Downloadable Product Samples part block
@@ -29,15 +30,15 @@ public function hasSamples()
29
30
/**
30
31
* Get downloadable product samples
31
32
*
32
- * @return array
33
+ * @return SampleCollection
33
34
*/
34
35
public function getSamples ()
35
36
{
36
37
return $ this ->getProduct ()->getTypeInstance ()->getSamples ($ this ->getProduct ());
37
38
}
38
39
39
40
/**
40
- * @param Sample $sample
41
+ * @param SampleInterface $sample
41
42
* @return string
42
43
*/
43
44
public function getSampleUrl ($ sample )
You can’t perform that action at this time.
0 commit comments