Passed
Push — master ( fd71a6...5b3f98 )
by
unknown
51s queued 12s
created

FacadeCisItemResponse::getProductName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 0
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
     * @var string|null
70
     * @SerializedName("agentInn")
71
     */
72
    private $agentInn;
73
    /**
74
     * @var string|null
75
     * @SerializedName("agentName")
76
     */
77
    private $agentName;
78
79
    public function __construct(
80
        string $cis,
81
        string $gtin,
82
        string $status,
83
        int $emissionDate,
84
        string $packageType,
85
        int $countChildren
86
    ) {
87
        $this->cis = $cis;
88
        $this->gtin = $gtin;
89
        $this->status = $status;
90
        $this->emissionDate = $emissionDate;
91
        $this->packageType = $packageType;
92
        $this->countChildren = $countChildren;
93
    }
94
95
    public function getCis(): string
96
    {
97
        return $this->cis;
98
    }
99
100
    public function getGtin(): string
101
    {
102
        return $this->gtin;
103
    }
104
105
    public function getProducerName(): ?string
106
    {
107
        return $this->producerName;
108
    }
109
110
    public function setProducerName(string $producerName): void
111
    {
112
        $this->producerName = $producerName;
113
    }
114
115
    public function getStatus(): string
116
    {
117
        return $this->status;
118
    }
119
120
    public function getEmissionDate(): int
121
    {
122
        return $this->emissionDate;
123
    }
124
125
    public function getPackageType(): string
126
    {
127
        return $this->packageType;
128
    }
129
130
    public function getOwnerName(): ?string
131
    {
132
        return $this->ownerName;
133
    }
134
135
    public function setOwnerName(string $ownerName): void
136
    {
137
        $this->ownerName = $ownerName;
138
    }
139
140
    public function getOwnerInn(): ?string
141
    {
142
        return $this->ownerInn;
143
    }
144
145
    public function setOwnerInn(string $ownerInn): void
146
    {
147
        $this->ownerInn = $ownerInn;
148
    }
149
150
    public function getCountChildren(): int
151
    {
152
        return $this->countChildren;
153
    }
154
155
    public function getProductName(): ?string
156
    {
157
        return $this->productName;
158
    }
159
160
    public function setProductName(string $productName): void
161
    {
162
        $this->productName = $productName;
163
    }
164
165
    public function getBrand(): ?string
166
    {
167
        return $this->brand;
168
    }
169
170
    public function setBrand(string $brand): void
171
    {
172
        $this->brand = $brand;
173
    }
174
175
    public function getAgentInn(): ?string
176
    {
177
        return $this->agentInn;
178
    }
179
180
    public function setAgentInn(?string $agentInn): void
181
    {
182
        $this->agentInn = $agentInn;
183
    }
184
185
    public function getAgentName(): ?string
186
    {
187
        return $this->agentName;
188
    }
189
190
    public function setAgentName(?string $agentName): void
191
    {
192
        $this->agentName = $agentName;
193
    }
194
}
195