| 1 | <?php |
||
| 11 | class Parcel |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * |
||
| 15 | * @var DateTime |
||
| 16 | */ |
||
| 17 | private $maturity; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * |
||
| 21 | * @var float |
||
| 22 | */ |
||
| 23 | private $price; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var int |
||
| 27 | */ |
||
| 28 | private $key; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @var int |
||
| 32 | */ |
||
| 33 | private $quantity; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @var int |
||
| 37 | */ |
||
| 38 | private $status; |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Constructor |
||
| 42 | * |
||
| 43 | * @param DateTime $maturity |
||
| 44 | * @param float $price |
||
| 45 | * @param int $key |
||
| 46 | * @param int $quantity |
||
| 47 | * @param int $status |
||
| 48 | */ |
||
| 49 | 17 | public function __construct( |
|
| 62 | |||
| 63 | /** |
||
| 64 | * @return the $maturity |
||
| 65 | */ |
||
| 66 | 1 | public function getMaturity(): DateTime |
|
| 70 | |||
| 71 | /** |
||
| 72 | * @param \DateTime $maturity |
||
| 73 | */ |
||
| 74 | 1 | public function setMaturity(DateTime $maturity) |
|
| 78 | |||
| 79 | /** |
||
| 80 | * @return the $price |
||
| 81 | */ |
||
| 82 | 1 | public function getPrice(): float |
|
| 86 | |||
| 87 | /** |
||
| 88 | * @param float $price |
||
| 89 | */ |
||
| 90 | 1 | public function setPrice(float $price) |
|
| 94 | |||
| 95 | /** |
||
| 96 | * @return int |
||
| 97 | */ |
||
| 98 | 1 | public function getKey(): int |
|
| 102 | |||
| 103 | /** |
||
| 104 | * @param int $key |
||
| 105 | */ |
||
| 106 | 1 | public function setKey(int $key = 0) |
|
| 110 | |||
| 111 | /** |
||
| 112 | * @return int |
||
| 113 | */ |
||
| 114 | 1 | public function getQuantity(): int |
|
| 118 | |||
| 119 | /** |
||
| 120 | * @param int $quantity |
||
| 121 | */ |
||
| 122 | 1 | public function setQuantity(int $quantity = 1) |
|
| 126 | |||
| 127 | /** |
||
| 128 | * @return int |
||
| 129 | */ |
||
| 130 | 1 | public function getStatus(): int |
|
| 134 | |||
| 135 | /** |
||
| 136 | * @param int $status |
||
| 137 | */ |
||
| 138 | 1 | public function setStatus(int $status) |
|
| 142 | } |
||
| 143 |