Total Complexity | 5 |
Total Lines | 56 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
17 | class ShipmentDiscountCardId |
||
18 | { |
||
19 | use ToArray; |
||
20 | |||
21 | /** |
||
22 | * @var int |
||
23 | */ |
||
24 | private int $contractId; |
||
25 | |||
26 | /** |
||
27 | * @var int |
||
28 | */ |
||
29 | private int $cardId; |
||
30 | |||
31 | /** |
||
32 | * @param int $contractId |
||
33 | * @param int $cardId |
||
34 | */ |
||
35 | 4 | public function __construct( |
|
36 | int $contractId, |
||
37 | int $cardId |
||
38 | ) { |
||
39 | 4 | $this->setContractId($contractId); |
|
40 | 4 | $this->setCardId($cardId); |
|
41 | } |
||
42 | |||
43 | /** |
||
44 | * @return int |
||
45 | */ |
||
46 | 1 | public function getContractId(): int |
|
47 | { |
||
48 | 1 | return $this->contractId; |
|
49 | } |
||
50 | |||
51 | /** |
||
52 | * @param int $contractId |
||
53 | */ |
||
54 | 4 | public function setContractId(int $contractId): void |
|
55 | { |
||
56 | 4 | $this->contractId = $contractId; |
|
57 | } |
||
58 | |||
59 | /** |
||
60 | * @return int |
||
61 | */ |
||
62 | 1 | public function getCardId(): int |
|
63 | { |
||
64 | 1 | return $this->cardId; |
|
65 | } |
||
66 | |||
67 | /** |
||
68 | * @param int $cardId |
||
69 | */ |
||
70 | 4 | public function setCardId(int $cardId): void |
|
73 | } |
||
74 | } |
||
75 |