1 | <?php declare(strict_types=1); |
||
9 | final class Status implements SerializableInterface |
||
10 | { |
||
11 | /** |
||
12 | * @var StatusType |
||
13 | */ |
||
14 | private $type; |
||
15 | |||
16 | /** |
||
17 | * @var StatusReason[] |
||
18 | */ |
||
19 | private $reason; |
||
20 | |||
21 | public function __construct(StatusType $type, array $reason) |
||
27 | |||
28 | public function getType(): StatusType |
||
29 | { |
||
30 | return $this->type; |
||
31 | } |
||
32 | |||
33 | public function getReason(): array |
||
34 | { |
||
35 | return $this->reason; |
||
36 | } |
||
37 | |||
38 | public static function deserialize(array $data): Status |
||
53 | |||
54 | public function serialize(): array |
||
66 | |||
67 | /** |
||
68 | * @param StatusReason[] $statusReason |
||
69 | */ |
||
70 | private function ensureTranslationsAreUnique(array $statusReason): void |
||
80 | } |
||
81 |