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

InventoryActionBuilder::removeQuantity()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 3
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
cc 1
eloc 1
nc 1
nop 0
crap 2
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