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