ProductCustomOption::remove()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
c 2
b 0
f 0
dl 0
loc 5
rs 9.4285
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
/**
4
 * @file
5
 *          Magento API Client (SOAP v1).
6
 *          Allows wrappers for each call, dependencies injections
7
 *          and code completion.
8
 *
9
 * @author  Sébastien MALOT <[email protected]>
10
 * @license MIT
11
 * @url     <https://github.com/smalot/magento-client>
12
 *
13
 * For the full copyright and license information, please view the LICENSE
14
 * file that was distributed with this source code.
15
 */
16
17
namespace Smalot\Magento\Catalog;
18
19
use Smalot\Magento\ActionInterface;
20
use Smalot\Magento\MagentoModuleAbstract;
21
22
/**
23
 * Class ProductCustomOption
24
 *
25
 * @package Smalot\Magento\Catalog
26
 */
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)
0 ignored issues
show
Unused Code introduced by
The parameter $productId is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $data is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $store is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
39
    {
40
        return $this->__createAction('product_custom_option.add', func_get_args());
41
    }
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)
0 ignored issues
show
Unused Code introduced by
The parameter $optionId is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $store is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
52
    {
53
        return $this->__createAction('product_custom_option.info', func_get_args());
54
    }
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)
0 ignored issues
show
Unused Code introduced by
The parameter $productId is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $store is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
65
    {
66
        return $this->__createAction('product_custom_option.list', func_get_args());
67
    }
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)
0 ignored issues
show
Unused Code introduced by
The parameter $optionId is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
77
    {
78
        return $this->__createAction('product_custom_option.remove', func_get_args());
79
80
    }
81
82
    /**
83
     * Allows you to retrieve the list of available custom option types.
84
     *
85
     * @return ActionInterface
86
     */
87
    public function getTypes()
88
    {
89
        return $this->__createAction('product_custom_option.types', func_get_args());
90
    }
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)
0 ignored issues
show
Unused Code introduced by
The parameter $optionId is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $data is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $store is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
102
    {
103
        return $this->__createAction('product_custom_option.update', func_get_args());
104
    }
105
}
106