vasildakov /
speedy
| 1 | <?php |
||
| 2 | |||
| 3 | declare(strict_types=1); |
||
| 4 | |||
| 5 | namespace VasilDakov\Speedy\Service\Shipment; |
||
| 6 | |||
| 7 | use VasilDakov\Speedy\Traits\ToArray; |
||
| 8 | |||
| 9 | /** |
||
| 10 | * Class ShipmentDiscountCardId. |
||
| 11 | * |
||
| 12 | * @author Vasil Dakov <[email protected]> |
||
| 13 | * @author Valentin Valkanov <[email protected]> |
||
| 14 | * @psalm-suppress PropertyNotSetInConstructor |
||
| 15 | */ |
||
| 16 | class ShipmentDiscountCardId |
||
| 17 | { |
||
| 18 | use ToArray; |
||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
| 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 |
|
| 48 | { |
||
| 49 | 4 | $this->cardId = $cardId; |
|
| 50 | } |
||
| 51 | } |
||
| 52 |