1 | <?php |
||
9 | final class FacadeCisItemResponse |
||
10 | { |
||
11 | public const STATUS_EMITTED = 'EMITTED'; |
||
12 | public const STATUS_APPLIED = 'APPLIED'; |
||
13 | public const STATUS_INTRODUCED = 'INTRODUCED'; |
||
14 | public const STATUS_RETIRED = 'RETIRED'; |
||
15 | public const STATUS_ISSUED = 'ISSUED'; |
||
16 | |||
17 | /** |
||
18 | * @var string |
||
19 | */ |
||
20 | private $cis; |
||
21 | /** |
||
22 | * @var string |
||
23 | */ |
||
24 | private $gtin; |
||
25 | /** |
||
26 | * @var string|null |
||
27 | * @SerializedName("producerName") |
||
28 | */ |
||
29 | private $producerName; |
||
30 | /** |
||
31 | * @var string |
||
32 | */ |
||
33 | private $status; |
||
34 | /** |
||
35 | * @var int |
||
36 | * @SerializedName("emissionDate") |
||
37 | */ |
||
38 | private $emissionDate; |
||
39 | /** |
||
40 | * @var string |
||
41 | * @SerializedName("packageType") |
||
42 | */ |
||
43 | private $packageType; |
||
44 | /** |
||
45 | * @var string|null |
||
46 | * @SerializedName("ownerName") |
||
47 | */ |
||
48 | private $ownerName; |
||
49 | /** |
||
50 | * @var string|null |
||
51 | * @SerializedName("ownerInn") |
||
52 | */ |
||
53 | private $ownerInn; |
||
54 | /** |
||
55 | * @var string|null |
||
56 | * @SerializedName("productName") |
||
57 | */ |
||
58 | private $productName; |
||
59 | /** |
||
60 | * @var string|null |
||
61 | */ |
||
62 | private $brand; |
||
63 | /** |
||
64 | * @var int |
||
65 | * @SerializedName("countChildren") |
||
66 | */ |
||
67 | private $countChildren; |
||
68 | |||
69 | public function __construct( |
||
70 | string $cis, |
||
71 | string $gtin, |
||
72 | string $status, |
||
73 | int $emissionDate, |
||
74 | string $packageType, |
||
75 | int $countChildren |
||
76 | ) { |
||
77 | $this->cis = $cis; |
||
78 | $this->gtin = $gtin; |
||
79 | $this->status = $status; |
||
80 | $this->emissionDate = $emissionDate; |
||
81 | $this->packageType = $packageType; |
||
82 | $this->countChildren = $countChildren; |
||
83 | } |
||
84 | |||
85 | /** |
||
86 | * @return string |
||
87 | */ |
||
88 | public function getCis(): string |
||
89 | { |
||
90 | return $this->cis; |
||
91 | } |
||
92 | |||
93 | /** |
||
94 | * @return string |
||
95 | */ |
||
96 | public function getGtin(): string |
||
97 | { |
||
98 | return $this->gtin; |
||
99 | } |
||
100 | |||
101 | /** |
||
102 | * @return string|null |
||
103 | */ |
||
104 | public function getProducerName(): ?string |
||
105 | { |
||
106 | return $this->producerName; |
||
107 | } |
||
108 | |||
109 | public function setProducerName(string $producerName): void |
||
110 | { |
||
111 | $this->producerName = $producerName; |
||
112 | } |
||
113 | |||
114 | /** |
||
115 | * @return string |
||
116 | */ |
||
117 | public function getStatus(): string |
||
118 | { |
||
119 | return $this->status; |
||
120 | } |
||
121 | |||
122 | /** |
||
123 | * @return int |
||
124 | */ |
||
125 | public function getEmissionDate(): int |
||
126 | { |
||
127 | return $this->emissionDate; |
||
128 | } |
||
129 | |||
130 | /** |
||
131 | * @return string |
||
132 | */ |
||
133 | public function getPackageType(): string |
||
134 | { |
||
135 | return $this->packageType; |
||
136 | } |
||
137 | |||
138 | /** |
||
139 | * @return string|null |
||
140 | */ |
||
141 | public function getOwnerName(): ?string |
||
142 | { |
||
143 | return $this->ownerName; |
||
144 | } |
||
145 | |||
146 | public function setOwnerName(string $ownerName): void |
||
147 | { |
||
148 | $this->ownerName = $ownerName; |
||
149 | } |
||
150 | |||
151 | /** |
||
152 | * @return string|null |
||
153 | */ |
||
154 | public function getOwnerInn(): ?string |
||
158 | |||
159 | public function setOwnerInn(string $ownerInn): void |
||
160 | { |
||
161 | $this->ownerInn = $ownerInn; |
||
162 | } |
||
163 | |||
164 | /** |
||
165 | * @return int |
||
166 | */ |
||
167 | public function getCountChildren(): int |
||
168 | { |
||
169 | return $this->countChildren; |
||
171 | |||
172 | /** |
||
173 | * @return string|null |
||
174 | */ |
||
175 | public function getProductName(): ?string |
||
179 | |||
180 | public function setProductName(string $productName): void |
||
184 | |||
185 | /** |
||
186 | * @return string|null |
||
187 | */ |
||
188 | public function getBrand(): ?string |
||
192 | |||
193 | public function setBrand(string $brand): void |
||
197 | } |
||
198 |