Completed
Pull Request — master (#16)
by Agaletskiy
07:55
created

FacadeCisItemResponse   A

Complexity

Total Complexity 17

Size/Duplication

Total Lines 189
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 17
lcom 0
cbo 0
dl 0
loc 189
rs 10
c 0
b 0
f 0

17 Methods

Rating   Name   Duplication   Size   Complexity  
A getOwnerInn() 0 4 1
A __construct() 0 15 1
A getCis() 0 4 1
A getGtin() 0 4 1
A getProducerName() 0 4 1
A setProducerName() 0 4 1
A getStatus() 0 4 1
A getEmissionDate() 0 4 1
A getPackageType() 0 4 1
A getOwnerName() 0 4 1
A setOwnerName() 0 4 1
A setOwnerInn() 0 4 1
A getCountChildren() 0 4 1
A getProductName() 0 4 1
A setProductName() 0 4 1
A getBrand() 0 4 1
A setBrand() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Lamoda\IsmpClient\V3\Dto;
6
7
use Symfony\Component\Serializer\Annotation\SerializedName;
8
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
155
    {
156
        return $this->ownerInn;
157
    }
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;
170
    }
171
172
    /**
173
     * @return string|null
174
     */
175
    public function getProductName(): ?string
176
    {
177
        return $this->productName;
178
    }
179
180
    public function setProductName(string $productName): void
181
    {
182
        $this->productName = $productName;
183
    }
184
185
    /**
186
     * @return string|null
187
     */
188
    public function getBrand(): ?string
189
    {
190
        return $this->brand;
191
    }
192
193
    public function setBrand(string $brand): void
194
    {
195
        $this->brand = $brand;
196
    }
197
}
198