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 66
77namespace 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,18 +30,18 @@ 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 */
43- public function getSampleUrl ($ sample )
44+ public function getSampleUrl (SampleInterface $ sample )
4445 {
4546 return $ this ->getUrl ('downloadable/download/sample ' , ['sample_id ' => $ sample ->getId ()]);
4647 }
You can’t perform that action at this time.
0 commit comments