Passed
Pull Request — master (#34)
by
unknown
04:37
created

OrderItem::getDescription()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 2
rs 10
1
<?php declare(strict_types=1);
2
3
namespace Ticketpark\SaferpayJson\Request\Container;
4
5
use JMS\Serializer\Annotation\SerializedName;
6
use JMS\Serializer\Annotation\Type;
7
8
final class OrderItem
9
{
10
    const TYPE_DIGITAL = 'DIGITAL';
11
    const TYPE_PHYSICAL = 'PHYSICAL';
12
    const TYPE_SERVICE = 'SERVICE';
13
    const TYPE_GIFTCARD = 'GIFTCARD';
14
    const TYPE_DISCOUNT = 'DISCOUNT';
15
    const TYPE_SHIPPINGFEE = 'SHIPPINGFEE';
16
    const TYPE_SALESTAX = 'SALESTAX';
17
    const TYPE_SURCHARGE = 'SURCHARGE';
18
19
20
    /**
21
     * @var string|null
22
     * @SerializedName("Type")
23
     */
24
    private $type;
25
26
    /**
27
     * @var string|null
28
     * @SerializedName("Id")
29
     */
30
    private $id;
31
32
    /**
33
     * @var string|null
34
     * @SerializedName("VariantId")
35
     */
36
    private $variantId;
37
38
    /**
39
     * @var string|null
40
     * @SerializedName("Name")
41
     */
42
    private $name;
43
44
    /**
45
     * @var string|null
46
     * @SerializedName("CategoryName")
47
     */
48
    private $categoryName;
49
50
    /**
51
     * @var string|null
52
     * @SerializedName("Description")
53
     */
54
    private $description;
55
56
    /**
57
     * @var string|null
58
     * @SerializedName("Quantity")
59
     */
60
    private $quantity;
61
62
    /**
63
     * @var string|null
64
     * @SerializedName("UnitPrice")
65
     */
66
    private $unitPrice;
67
68
    /**
69
     * @var string|null
70
     * @SerializedName("IsPreOrder")
71
     */
72
    private $isPreOrder;
73
74
    /**
75
     * @var string|null
76
     * @SerializedName("TaxRate")
77
     */
78
    private $taxRate;
79
80
    /**
81
     * @var string|null
82
     * @SerializedName("TaxAmount")
83
     */
84
    private $taxAmount;
85
86
    /**
87
     * @var string|null
88
     * @SerializedName("DiscountAmount")
89
     */
90
    private $discountAmount;
91
92
93
    public function getType(): ?string {
94
        return $this->type;
95
    }
96
97
98
    public function setType(?string $type): self {
99
        $this->type = $type;
100
101
        return $this;
102
    }
103
104
105
    public function getId(): ?string {
106
        return $this->id;
107
    }
108
109
110
    public function setId(?string $id): self {
111
        $this->id = $id;
112
113
        return $this;
114
    }
115
116
117
    public function getVariantId(): ?string {
118
        return $this->variantId;
119
    }
120
121
122
    public function setVariantId(?string $variantId): self {
123
        $this->variantId = $variantId;
124
125
        return $this;
126
    }
127
128
129
    public function getName(): ?string {
130
        return $this->name;
131
    }
132
133
134
    public function setName(?string $name): self {
135
        $this->name = $name;
136
137
        return $this;
138
    }
139
140
141
    public function getCategoryName(): ?string {
142
        return $this->categoryName;
143
    }
144
145
146
    public function setCategoryName(?string $categoryName): self {
147
        $this->categoryName = $categoryName;
148
149
        return $this;
150
    }
151
152
153
    public function getDescription(): ?string {
154
        return $this->description;
155
    }
156
157
158
    public function setDescription(?string $description): self {
159
        $this->description = $description;
160
161
        return $this;
162
    }
163
164
165
    public function getQuantity(): ?string {
166
        return $this->quantity;
167
    }
168
169
170
    public function setQuantity(?string $quantity): self {
171
        $this->quantity = $quantity;
172
173
        return $this;
174
    }
175
176
177
    public function getUnitPrice(): ?string {
178
        return $this->unitPrice;
179
    }
180
181
182
    public function setUnitPrice(?string $unitPrice): self {
183
        $this->unitPrice = $unitPrice;
184
185
        return $this;
186
    }
187
188
189
    public function getIsPreOrder(): ?string {
190
        return $this->isPreOrder;
191
    }
192
193
194
    public function setIsPreOrder(?string $isPreOrder): self {
195
        $this->isPreOrder = $isPreOrder;
196
197
        return $this;
198
    }
199
200
201
    public function getTaxRate(): ?string {
202
        return $this->taxRate;
203
    }
204
205
206
    public function setTaxRate(?string $taxRate): self {
207
        $this->taxRate = $taxRate;
208
209
        return $this;
210
    }
211
212
213
    public function getTaxAmount(): ?string {
214
        return $this->taxAmount;
215
    }
216
217
218
    public function setTaxAmount(?string $taxAmount): self {
219
        $this->taxAmount = $taxAmount;
220
221
        return $this;
222
    }
223
224
225
    public function getDiscountAmount(): ?string {
226
        return $this->discountAmount;
227
    }
228
229
230
    public function setDiscountAmount(?string $discountAmount): self {
231
        $this->discountAmount = $discountAmount;
232
233
        return $this;
234
    }
235
236
237
238
239
240
241
}
242