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

SubscriptionsActionBuilder   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 3
dl 0
loc 24
ccs 6
cts 6
cp 1
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A setKey() 0 3 1
A setMessages() 0 3 1
A setChanges() 0 3 1
1
<?php
2
3
namespace Commercetools\Core\Builder\Update;
4
5
use Commercetools\Core\Request\Subscriptions\Command\SubscriptionSetChangesAction;
6
use Commercetools\Core\Request\Subscriptions\Command\SubscriptionSetMessagesAction;
7
use Commercetools\Core\Request\Subscriptions\Command\SubscriptionSetKeyAction;
8
9
class SubscriptionsActionBuilder
10
{
11
    /**
12
     * @return SubscriptionSetChangesAction
13
     */
14 1
    public function setChanges()
15
    {
16 1
        return SubscriptionSetChangesAction::of();
17
    }
18
19
    /**
20
     * @return SubscriptionSetMessagesAction
21
     */
22 1
    public function setMessages()
23
    {
24 1
        return SubscriptionSetMessagesAction::of();
25
    }
26
27
    /**
28
     * @return SubscriptionSetKeyAction
29
     */
30 1
    public function setKey()
31
    {
32 1
        return SubscriptionSetKeyAction::of();
33
    }
34
}
35