Passed
Branch request_builder (c1031c)
by Jens
08:30
created

StatesActionBuilder   A

Complexity

Total Complexity 10

Size/Duplication

Total Lines 80
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

10 Methods

Rating   Name   Duplication   Size   Complexity  
A addRoles() 0 3 1
A changeType() 0 3 1
A transitionState() 0 3 1
A setDescription() 0 3 1
A setTransitions() 0 3 1
A changeInitial() 0 3 1
A setName() 0 3 1
A changeKey() 0 3 1
A removeRoles() 0 3 1
A setRoles() 0 3 1
1
<?php
2
3
namespace Commercetools\Core\Builder\Update;
4
5
use Commercetools\Core\Request\States\Command\StateSetDescriptionAction;
6
use Commercetools\Core\Request\States\Command\StateChangeTypeAction;
7
use Commercetools\Core\Request\States\Command\TransitionStateAction;
8
use Commercetools\Core\Request\States\Command\StateRemoveRolesAction;
9
use Commercetools\Core\Request\States\Command\StateSetNameAction;
10
use Commercetools\Core\Request\States\Command\StateAddRolesAction;
11
use Commercetools\Core\Request\States\Command\StateChangeInitialAction;
12
use Commercetools\Core\Request\States\Command\StateSetTransitionsAction;
13
use Commercetools\Core\Request\States\Command\StateChangeKeyAction;
14
use Commercetools\Core\Request\States\Command\StateSetRolesAction;
15
16
class StatesActionBuilder
17
{
18
    /**
19
     * @return StateSetDescriptionAction
20
     */
21 1
    public function setDescription()
22
    {
23 1
        return StateSetDescriptionAction::of();
24
    }
25
26
    /**
27
     * @return StateChangeTypeAction
28
     */
29 1
    public function changeType()
30
    {
31 1
        return StateChangeTypeAction::of();
32
    }
33
34
    /**
35
     * @return TransitionStateAction
36
     */
37 1
    public function transitionState()
38
    {
39 1
        return TransitionStateAction::of();
40
    }
41
42
    /**
43
     * @return StateRemoveRolesAction
44
     */
45 1
    public function removeRoles()
46
    {
47 1
        return StateRemoveRolesAction::of();
48
    }
49
50
    /**
51
     * @return StateSetNameAction
52
     */
53 1
    public function setName()
54
    {
55 1
        return StateSetNameAction::of();
56
    }
57
58
    /**
59
     * @return StateAddRolesAction
60
     */
61 1
    public function addRoles()
62
    {
63 1
        return StateAddRolesAction::of();
64
    }
65
66
    /**
67
     * @return StateChangeInitialAction
68
     */
69 1
    public function changeInitial()
70
    {
71 1
        return StateChangeInitialAction::of();
72
    }
73
74
    /**
75
     * @return StateSetTransitionsAction
76
     */
77 1
    public function setTransitions()
78
    {
79 1
        return StateSetTransitionsAction::of();
80
    }
81
82
    /**
83
     * @return StateChangeKeyAction
84
     */
85 1
    public function changeKey()
86
    {
87 1
        return StateChangeKeyAction::of();
88
    }
89
90
    /**
91
     * @return StateSetRolesAction
92
     */
93 1
    public function setRoles()
94
    {
95 1
        return StateSetRolesAction::of();
96
    }
97
}
98