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