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

ProductDiscountsActionBuilder::changePredicate()   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\ProductDiscounts\Command\ProductDiscountSetDescriptionAction;
6
use Commercetools\Core\Request\ProductDiscounts\Command\ProductDiscountChangeValueAction;
7
use Commercetools\Core\Request\ProductDiscounts\Command\ProductDiscountChangePredicateAction;
8
use Commercetools\Core\Request\ProductDiscounts\Command\ProductDiscountChangeSortOrderAction;
9
use Commercetools\Core\Request\ProductDiscounts\Command\ProductDiscountSetValidUntilAction;
10
use Commercetools\Core\Request\ProductDiscounts\Command\ProductDiscountChangeNameAction;
11
use Commercetools\Core\Request\ProductDiscounts\Command\ProductDiscountChangeIsActiveAction;
12
use Commercetools\Core\Request\ProductDiscounts\Command\ProductDiscountSetValidFromAction;
13
14
class ProductDiscountsActionBuilder
15
{
16
    /**
17
     * @return ProductDiscountSetDescriptionAction
18
     */
19
    public function setDescription()
20
    {
21
        return ProductDiscountSetDescriptionAction::of();
22
    }
23
24
    /**
25
     * @return ProductDiscountChangeValueAction
26
     */
27
    public function changeValue()
28
    {
29
        return ProductDiscountChangeValueAction::of();
30
    }
31
32
    /**
33
     * @return ProductDiscountChangePredicateAction
34
     */
35
    public function changePredicate()
36
    {
37
        return ProductDiscountChangePredicateAction::of();
38
    }
39
40
    /**
41
     * @return ProductDiscountChangeSortOrderAction
42
     */
43
    public function changeSortOrder()
44
    {
45
        return ProductDiscountChangeSortOrderAction::of();
46
    }
47
48
    /**
49
     * @return ProductDiscountSetValidUntilAction
50
     */
51
    public function setValidUntil()
52
    {
53
        return ProductDiscountSetValidUntilAction::of();
54
    }
55
56
    /**
57
     * @return ProductDiscountChangeNameAction
58
     */
59
    public function changeName()
60
    {
61
        return ProductDiscountChangeNameAction::of();
62
    }
63
64
    /**
65
     * @return ProductDiscountChangeIsActiveAction
66
     */
67
    public function changeIsActive()
68
    {
69
        return ProductDiscountChangeIsActiveAction::of();
70
    }
71
72
    /**
73
     * @return ProductDiscountSetValidFromAction
74
     */
75
    public function setValidFrom()
76
    {
77
        return ProductDiscountSetValidFromAction::of();
78
    }
79
}
80