Passed
Branch request_builder (f74bff)
by Jens
09:45
created

ShippingMethodsActionBuilder   A

Complexity

Total Complexity 10

Size/Duplication

Total Lines 80
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 10
dl 0
loc 80
ccs 0
cts 20
cp 0
rs 10
c 0
b 0
f 0

10 Methods

Rating   Name   Duplication   Size   Complexity  
A changeIsDefault() 0 3 1
A setPredicate() 0 3 1
A setKey() 0 3 1
A setDescription() 0 3 1
A removeShippingRate() 0 3 1
A addShippingRate() 0 3 1
A addZone() 0 3 1
A changeTaxCategory() 0 3 1
A changeName() 0 3 1
A removeZone() 0 3 1
1
<?php
2
3
namespace Commercetools\Core\Builder\Update;
4
5
use Commercetools\Core\Request\ShippingMethods\Command\ShippingMethodAddShippingRateAction;
6
use Commercetools\Core\Request\ShippingMethods\Command\ShippingMethodChangeIsDefaultAction;
7
use Commercetools\Core\Request\ShippingMethods\Command\ShippingMethodChangeTaxCategoryAction;
8
use Commercetools\Core\Request\ShippingMethods\Command\ShippingMethodSetKeyAction;
9
use Commercetools\Core\Request\ShippingMethods\Command\ShippingMethodAddZoneAction;
10
use Commercetools\Core\Request\ShippingMethods\Command\ShippingMethodRemoveZoneAction;
11
use Commercetools\Core\Request\ShippingMethods\Command\ShippingMethodChangeNameAction;
12
use Commercetools\Core\Request\ShippingMethods\Command\ShippingMethodSetPredicateAction;
13
use Commercetools\Core\Request\ShippingMethods\Command\ShippingMethodRemoveShippingRateAction;
14
use Commercetools\Core\Request\ShippingMethods\Command\ShippingMethodSetDescriptionAction;
15
16
class ShippingMethodsActionBuilder
17
{
18
    /**
19
     * @return ShippingMethodAddShippingRateAction
20
     */
21
    public function addShippingRate()
22
    {
23
        return ShippingMethodAddShippingRateAction::of();
24
    }
25
26
    /**
27
     * @return ShippingMethodChangeIsDefaultAction
28
     */
29
    public function changeIsDefault()
30
    {
31
        return ShippingMethodChangeIsDefaultAction::of();
32
    }
33
34
    /**
35
     * @return ShippingMethodChangeTaxCategoryAction
36
     */
37
    public function changeTaxCategory()
38
    {
39
        return ShippingMethodChangeTaxCategoryAction::of();
40
    }
41
42
    /**
43
     * @return ShippingMethodSetKeyAction
44
     */
45
    public function setKey()
46
    {
47
        return ShippingMethodSetKeyAction::of();
48
    }
49
50
    /**
51
     * @return ShippingMethodAddZoneAction
52
     */
53
    public function addZone()
54
    {
55
        return ShippingMethodAddZoneAction::of();
56
    }
57
58
    /**
59
     * @return ShippingMethodRemoveZoneAction
60
     */
61
    public function removeZone()
62
    {
63
        return ShippingMethodRemoveZoneAction::of();
64
    }
65
66
    /**
67
     * @return ShippingMethodChangeNameAction
68
     */
69
    public function changeName()
70
    {
71
        return ShippingMethodChangeNameAction::of();
72
    }
73
74
    /**
75
     * @return ShippingMethodSetPredicateAction
76
     */
77
    public function setPredicate()
78
    {
79
        return ShippingMethodSetPredicateAction::of();
80
    }
81
82
    /**
83
     * @return ShippingMethodRemoveShippingRateAction
84
     */
85
    public function removeShippingRate()
86
    {
87
        return ShippingMethodRemoveShippingRateAction::of();
88
    }
89
90
    /**
91
     * @return ShippingMethodSetDescriptionAction
92
     */
93
    public function setDescription()
94
    {
95
        return ShippingMethodSetDescriptionAction::of();
96
    }
97
}
98