Completed
Branch master (9c37c7)
by Jens
07:29
created

CartRecalculateAction   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 12
ccs 4
cts 4
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
/**
3
 * @author @jayS-de <[email protected]>
4
 */
5
6
namespace Commercetools\Core\Request\Carts\Command;
7
8
use Commercetools\Core\Model\Common\Context;
9
use Commercetools\Core\Request\AbstractAction;
10
11
/**
12
 * @package Commercetools\Core\Request\Carts\Command
13
 * @link https://dev.commercetools.com/http-api-projects-carts.html#recalculate
14
 * @method string getAction()
15
 * @method CartRecalculateAction setAction(string $action = null)
16
 */
17
class CartRecalculateAction extends AbstractAction
18
{
19
    /**
20
     * @param array $data
21
     * @param Context|callable $context
22
     */
23 3
    public function __construct(array $data = [], $context = null)
24
    {
25 3
        parent::__construct($data, $context);
26 3
        $this->setAction('recalculate');
27 3
    }
28
}
29