StoreCreditQuote   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 4
Bugs 0 Features 0
Metric Value
wmc 2
c 4
b 0
f 0
lcom 0
cbo 1
dl 0
loc 28
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A removeAmount() 0 4 1
A setAmount() 0 4 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\CustomerBalance;
18
19
use Smalot\Magento\ActionInterface;
20
use Smalot\Magento\MagentoModuleAbstract;
21
22
/**
23
 * Class StoreCreditQuote
24
 *
25
 * @package Smalot\Magento\CustomerBalance
26
 */
27
class StoreCreditQuote extends MagentoModuleAbstract
28
{
29
    /**
30
     * Allows you to remove store credit amount from the shopping cart (quote) and increase the customer store credit.
31
     *
32
     * @param string $quoteId
33
     * @param string $store
34
     *
35
     * @return ActionInterface
36
     */
37
    public function removeAmount($quoteId, $store = null)
0 ignored issues
show
Unused Code introduced by
The parameter $quoteId 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...
38
    {
39
        return $this->__createAction('storecredit_quote.removeAmount', func_get_args());
40
    }
41
42
    /**
43
     * Allows you to set amount from the customer store credit to the shopping cart.
44
     *
45
     * @param string $quoteId
46
     * @param string $store
47
     *
48
     * @return ActionInterface
49
     */
50
    public function setAmount($quoteId, $store = null)
0 ignored issues
show
Unused Code introduced by
The parameter $quoteId 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...
51
    {
52
        return $this->__createAction('storecredit_quote.setAmount', func_get_args());
53
    }
54
}
55