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 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
@@ -31,15 +32,15 @@ public function hasSamples()
31
32
/**
32
33
* Get downloadable product samples
33
34
*
34
- * @return array
35
+ * @return SampleCollection
35
36
*/
36
37
public function getSamples ()
37
38
{
38
39
return $ this ->getProduct ()->getTypeInstance ()->getSamples ($ this ->getProduct ());
39
40
}
40
41
41
42
/**
42
- * @param Sample $sample
43
+ * @param SampleInterface $sample
43
44
* @return string
44
45
*/
45
46
public function getSampleUrl ($ sample )
You can’t perform that action at this time.
0 commit comments