1 | <?php |
||
27 | class ProductCustomOption extends MagentoModuleAbstract |
||
28 | { |
||
29 | /** |
||
30 | * Allows you to add a new custom option for a product. |
||
31 | * |
||
32 | * @param string $productId |
||
33 | * @param array $data |
||
34 | * @param string $store |
||
35 | * |
||
36 | * @return ActionInterface |
||
37 | */ |
||
38 | public function add($productId, $data, $store = null) |
||
42 | |||
43 | /** |
||
44 | * Allows you to retrieve full information about the custom option in a product. |
||
45 | * |
||
46 | * @param string $optionId |
||
47 | * @param string $store |
||
48 | * |
||
49 | * @return ActionInterface |
||
50 | */ |
||
51 | public function getInfo($optionId, $store = null) |
||
55 | |||
56 | /** |
||
57 | * Allows you to retrieve the list of custom options for a specific product. |
||
58 | * |
||
59 | * @param string $productId |
||
60 | * @param string $store |
||
61 | * |
||
62 | * @return ActionInterface |
||
63 | */ |
||
64 | public function getList($productId, $store = null) |
||
68 | |||
69 | /** |
||
70 | * Allows you to remove a custom option from the product. |
||
71 | * |
||
72 | * @param string $optionId |
||
73 | * |
||
74 | * @return ActionInterface |
||
75 | */ |
||
76 | public function remove($optionId) |
||
81 | |||
82 | /** |
||
83 | * Allows you to retrieve the list of available custom option types. |
||
84 | * |
||
85 | * @return ActionInterface |
||
86 | */ |
||
87 | public function getTypes() |
||
91 | |||
92 | /** |
||
93 | * Allows you to update the required product custom option. |
||
94 | * |
||
95 | * @param string $optionId |
||
96 | * @param array $data |
||
97 | * @param string $store |
||
98 | * |
||
99 | * @return ActionInterface |
||
100 | */ |
||
101 | public function update($optionId, $data, $store = null) |
||
105 | } |
||
106 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.