Total Complexity | 5 |
Total Lines | 34 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
16 | class ShipmentDiscountCardId |
||
17 | { |
||
18 | use ToArray; |
||
|
|||
19 | |||
20 | private int $contractId; |
||
21 | |||
22 | private int $cardId; |
||
23 | |||
24 | 4 | public function __construct( |
|
25 | int $contractId, |
||
26 | int $cardId |
||
27 | ) { |
||
28 | 4 | $this->setContractId($contractId); |
|
29 | 4 | $this->setCardId($cardId); |
|
30 | } |
||
31 | |||
32 | 1 | public function getContractId(): int |
|
33 | { |
||
34 | 1 | return $this->contractId; |
|
35 | } |
||
36 | |||
37 | 4 | public function setContractId(int $contractId): void |
|
38 | { |
||
39 | 4 | $this->contractId = $contractId; |
|
40 | } |
||
41 | |||
42 | 1 | public function getCardId(): int |
|
43 | { |
||
44 | 1 | return $this->cardId; |
|
45 | } |
||
46 | |||
47 | 4 | public function setCardId(int $cardId): void |
|
50 | } |
||
51 | } |
||
52 |