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

InventoryActionBuilder   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 48
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 6
dl 0
loc 48
ccs 0
cts 12
cp 0
rs 10
c 0
b 0
f 0

6 Methods

Rating   Name   Duplication   Size   Complexity  
A setExpectedDelivery() 0 3 1
A removeQuantity() 0 3 1
A setSupplyChannel() 0 3 1
A setRestockableInDays() 0 3 1
A changeQuantity() 0 3 1
A addQuantity() 0 3 1
1
<?php
2
3
namespace Commercetools\Core\Builder\Update;
4
5
use Commercetools\Core\Request\Inventory\Command\InventorySetExpectedDeliveryAction;
6
use Commercetools\Core\Request\Inventory\Command\InventoryAddQuantityAction;
7
use Commercetools\Core\Request\Inventory\Command\InventoryChangeQuantityAction;
8
use Commercetools\Core\Request\Inventory\Command\InventorySetSupplyChannelAction;
9
use Commercetools\Core\Request\Inventory\Command\InventorySetRestockableInDaysAction;
10
use Commercetools\Core\Request\Inventory\Command\InventoryRemoveQuantityAction;
11
12
class InventoryActionBuilder
13
{
14
    /**
15
     * @return InventorySetExpectedDeliveryAction
16
     */
17
    public function setExpectedDelivery()
18
    {
19
        return InventorySetExpectedDeliveryAction::of();
20
    }
21
22
    /**
23
     * @return InventoryAddQuantityAction
24
     */
25
    public function addQuantity()
26
    {
27
        return InventoryAddQuantityAction::of();
28
    }
29
30
    /**
31
     * @return InventoryChangeQuantityAction
32
     */
33
    public function changeQuantity()
34
    {
35
        return InventoryChangeQuantityAction::of();
36
    }
37
38
    /**
39
     * @return InventorySetSupplyChannelAction
40
     */
41
    public function setSupplyChannel()
42
    {
43
        return InventorySetSupplyChannelAction::of();
44
    }
45
46
    /**
47
     * @return InventorySetRestockableInDaysAction
48
     */
49
    public function setRestockableInDays()
50
    {
51
        return InventorySetRestockableInDaysAction::of();
52
    }
53
54
    /**
55
     * @return InventoryRemoveQuantityAction
56
     */
57
    public function removeQuantity()
58
    {
59
        return InventoryRemoveQuantityAction::of();
60
    }
61
}
62