1 | <?php |
||
27 | class ProductDownloadableLink extends MagentoModuleAbstract |
||
28 | { |
||
29 | const TYPE_SAMPLE = 'sample'; |
||
30 | |||
31 | const TYPE_LINK = 'link'; |
||
32 | |||
33 | /** |
||
34 | * Allows you to add a new link to a downloadable product. |
||
35 | * |
||
36 | * @param string $productId |
||
37 | * @param array $resource |
||
38 | * @param string $resourceType |
||
39 | * @param string $store |
||
40 | * @param string $identifierType |
||
41 | * |
||
42 | * @return ActionInterface |
||
43 | */ |
||
44 | public function add($productId, $resource, $resourceType, $store = null, $identifierType = null) |
||
48 | |||
49 | /** |
||
50 | * Allows you to retrieve a list of links of a downloadable product. |
||
51 | * |
||
52 | * @param string $productId |
||
53 | * @param string $store |
||
54 | * @param string $identifierType |
||
55 | * |
||
56 | * @return ActionInterface |
||
57 | */ |
||
58 | public function getList($productId, $store = null, $identifierType = null) |
||
62 | |||
63 | /** |
||
64 | * Allows you to remove a link/sample from a downloadable product. |
||
65 | * |
||
66 | * @param string $linkId |
||
67 | * @param string $resourceType |
||
68 | * |
||
69 | * @return ActionInterface |
||
70 | */ |
||
71 | public function remove($linkId, $resourceType) |
||
75 | } |
||
76 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.