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

CustomerGroupsActionBuilder   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
dl 0
loc 16
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setKey() 0 3 1
A changeName() 0 3 1
1
<?php
2
3
namespace Commercetools\Core\Builder\Update;
4
5
use Commercetools\Core\Request\CustomerGroups\Command\CustomerGroupSetKeyAction;
6
use Commercetools\Core\Request\CustomerGroups\Command\CustomerGroupChangeNameAction;
7
8
class CustomerGroupsActionBuilder
9
{
10
    /**
11
     * @return CustomerGroupSetKeyAction
12
     */
13 1
    public function setKey()
14
    {
15 1
        return CustomerGroupSetKeyAction::of();
16
    }
17
18
    /**
19
     * @return CustomerGroupChangeNameAction
20
     */
21 1
    public function changeName()
22
    {
23 1
        return CustomerGroupChangeNameAction::of();
24
    }
25
}
26