| 1 | <?php |
||
| 8 | class PackageStatus |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var int |
||
| 12 | */ |
||
| 13 | private $id; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var string |
||
| 17 | */ |
||
| 18 | private $name; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var \DateTime|null |
||
| 22 | */ |
||
| 23 | private $date; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * PackageStatus constructor |
||
| 27 | * |
||
| 28 | * @param int $id |
||
| 29 | * @param string $name |
||
| 30 | * @param \DateTime|null $date |
||
| 31 | */ |
||
| 32 | 10 | public function __construct(int $id, string $name, DateTime $date = null) |
|
| 38 | |||
| 39 | /** |
||
| 40 | * @return int |
||
| 41 | */ |
||
| 42 | 6 | public function getId(): int |
|
| 46 | |||
| 47 | /** |
||
| 48 | * @return string |
||
| 49 | */ |
||
| 50 | 6 | public function getName(): string |
|
| 54 | |||
| 55 | /** |
||
| 56 | * @return \DateTime|null |
||
| 57 | */ |
||
| 58 | 6 | public function getDate(): ?DateTime |
|
| 62 | |||
| 63 | /** |
||
| 64 | * @param array<string,mixed> $data |
||
| 65 | * |
||
| 66 | * @return \Inspirum\Balikobot\Model\Values\PackageStatus |
||
| 67 | */ |
||
| 68 | 10 | public static function newInstanceFromData(array $data): self |
|
| 78 | } |
||
| 79 |