Completed
Push — master ( 05297f...b8a6a6 )
by Vragov
03:04
created

Calculate::setConsumerCancellationCost()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
namespace SafeCrow\Model;
3
4
/**
5
 * Class Calculate
6
 * @package SafeCrow\Model
7
 */
8
class Calculate
9
{
10
    /**
11
     * @var int
12
     */
13
    private $price;
14
15
    /**
16
     * @var int|null
17
     */
18
    private $supplierServiceCost;
19
20
    /**
21
     * @var int|null
22
     */
23
    private $consumerServiceCost;
24
25
    /**
26
     * @var int|null
27
     */
28
    private $consumerCancellationCost;
29
30
    /**
31
     * @return int
32
     */
33
    public function getPrice(): int
34
    {
35
        return $this->price;
36
    }
37
38
    /**
39
     * @param int $price
40
     * @return Calculate
41
     */
42
    public function setPrice(int $price): Calculate
43
    {
44
        $this->price = $price;
45
46
        return $this;
47
    }
48
49
    /**
50
     * @return int|null
51
     */
52
    public function getSupplierServiceCost()
53
    {
54
        return $this->supplierServiceCost;
55
    }
56
57
    /**
58
     * @param int|null $supplierServiceCost
59
     * @return Calculate
60
     */
61
    public function setSupplierServiceCost(int $supplierServiceCost = null): Calculate
62
    {
63
        $this->supplierServiceCost = $supplierServiceCost;
64
65
        return $this;
66
    }
67
68
    /**
69
     * @return int|null
70
     */
71
    public function getConsumerServiceCost()
72
    {
73
        return $this->consumerServiceCost;
74
    }
75
76
    /**
77
     * @param int|null $consumerServiceCost
78
     * @return Calculate
79
     */
80
    public function setConsumerServiceCost(int $consumerServiceCost = null): Calculate
81
    {
82
        $this->consumerServiceCost = $consumerServiceCost;
83
84
        return $this;
85
    }
86
87
    /**
88
     * @return int|null
89
     */
90
    public function getConsumerCancellationCost()
91
    {
92
        return $this->consumerCancellationCost;
93
    }
94
95
    /**
96
     * @param int|null $consumerCancellationCost
97
     * @return Calculate
98
     */
99
    public function setConsumerCancellationCost(int $consumerCancellationCost = null): Calculate
100
    {
101
        $this->consumerCancellationCost = $consumerCancellationCost;
102
103
        return $this;
104
    }
105
}
106