OrderTransferReturn::getClientBarCode()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 1
c 1
b 0
f 1
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace DalliSDK\Models;
6
7
use DalliSDK\Traits\Fillable;
8
use JMS\Serializer\Annotation as JMS;
9
10
/**
11
 * Модель для ответа на запрос "Акты возврата"
12
 *
13
 * @see https://api.dalli-service.com/v1/doc/returnTransfers
14
 * @JMS\XmlRoot("order")
15
 */
16
class OrderTransferReturn
17
{
18
    use Fillable;
19
20
    /**
21
     * Код заявки
22
     *
23
     * @JMS\XmlAttribute()
24
     * @JMS\Type("string")
25
     * @JMS\SerializedName("acode")
26
     */
27
    private string $aCode;
28
29
    /**
30
     * Номер заказа в системе им
31
     *
32
     * @JMS\XmlAttribute()
33
     * @JMS\Type("string")
34
     * @JMS\SerializedName("number")
35
     */
36
    private string $number;
37
38
    /**
39
     * Штрих-код заявки
40
     *
41
     * @JMS\XmlAttribute()
42
     * @JMS\Type("string")
43
     * @JMS\SerializedName("barcode")
44
     */
45
    private string $barcode;
46
47
48
    /**
49
     * Дата доставки (Y-m-d)
50
     *
51
     * @JMS\XmlAttribute()
52
     * @JMS\Type("DateTimeImmutable<'Y-m-d'>")
53
     * @JMS\SerializedName("delivereddate")
54
     */
55
    private ?\DateTimeImmutable $deliveredDate = null;
56
57
    /**
58
     * Время доставки (H:i:s)
59
     *
60
     * @JMS\XmlAttribute()
61
     * @JMS\Type("string")
62
     * @JMS\SerializedName("deliveredtime")
63
     */
64
    private ?string $deliveredTime = null;
65
66
    /**
67
     * Информация о доставке
68
     *
69
     * @JMS\XmlAttribute()
70
     * @JMS\Type("string")
71
     * @JMS\SerializedName("deliveredto")
72
     */
73
    private ?string $deliveredTo = null;
74
75
    /**
76
     * Количество товара к возврату
77
     *
78
     * @JMS\XmlAttribute()
79
     * @JMS\Type("int")
80
     * @JMS\SerializedName("returnQty")
81
     */
82
    private int $returnQty;
83
84
85
    /**
86
     * Название товара
87
     *
88
     * @JMS\XmlAttribute()
89
     * @JMS\Type("string")
90
     * @JMS\SerializedName("ProductName")
91
     */
92
    private string $productName;
93
94
    /**
95
     * Код Честный Знак
96
     *
97
     * @JMS\XmlAttribute()
98
     * @JMS\Type("string")
99
     * @JMS\SerializedName("governmentCode")
100
     */
101
    private ?string $governmentCode = null;
102
103
    /**
104
     * Штрих-код товара
105
     *
106
     * @JMS\XmlAttribute()
107
     * @JMS\Type("string")
108
     * @JMS\SerializedName("ClientBarCode")
109
     */
110
    private ?string $clientBarCode = null;
111
112
    /**
113
     * @return string
114
     */
115 2
    public function getACode(): string
116
    {
117 2
        return $this->aCode;
118
    }
119
120
    /**
121
     * @return string
122
     */
123 2
    public function getBarcode(): string
124
    {
125 2
        return $this->barcode;
126
    }
127
128
129
    /**
130
     * @return string
131
     */
132 2
    public function getNumber(): string
133
    {
134 2
        return $this->number;
135
    }
136
137
    /**
138
     * @return \DateTimeImmutable|null
139
     */
140 2
    public function getDeliveredDate(): ?\DateTimeImmutable
141
    {
142 2
        return $this->deliveredDate;
143
    }
144
145
    /**
146
     * @return string|null
147
     */
148 2
    public function getDeliveredTime(): ?string
149
    {
150 2
        return $this->deliveredTime;
151
    }
152
153
    /**
154
     * @return string|null
155
     */
156 2
    public function getDeliveredTo(): ?string
157
    {
158 2
        return $this->deliveredTo;
159
    }
160
161
    /**
162
     * @return int
163
     */
164 2
    public function getReturnQty(): int
165
    {
166 2
        return $this->returnQty;
167
    }
168
169
    /**
170
     * @return string
171
     */
172 2
    public function getProductName(): string
173
    {
174 2
        return $this->productName;
175
    }
176
177
    /**
178
     * @return string|null
179
     */
180 2
    public function getGovernmentCode(): ?string
181
    {
182 2
        return $this->governmentCode;
183
    }
184
185
    /**
186
     * @return string|null
187
     */
188 2
    public function getClientBarCode(): ?string
189
    {
190 2
        return $this->clientBarCode;
191
    }
192
}
193