Country::getPostCodeFormats()   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 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
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 VasilDakov\Speedy\Model;
6
7
use JMS\Serializer\Annotation as Serializer;
8
9
/**
10
 * Class Country.
11
 *
12
 * @author Vasil Dakov <[email protected]>
13
 * @copyright 2009-2022 Neutrino.bg
14
 *
15
 * @version 1.0
16
 *
17
 * @psalm-suppress MissingConstructor
18
 *
19
 * @Serializer\AccessType("public_method")
20
 */
21
class Country
22
{
23
    /**
24
     * @Serializer\Type("integer")
25
     */
26
    public int $id;
27
28
    /**
29
     * @Serializer\Type("string")
30
     */
31
    public string $name;
32
33
    /**
34
     * @Serializer\Type("string")
35
     */
36
    public string $isoAlpha2;
37
38
    /**
39
     * @Serializer\Type("string")
40
     */
41
    public string $isoAlpha3;
42
43
    /**
44
     * @Serializer\Type("array")
45
     */
46
    public array $postCodeFormats;
47
48
    /**
49
     * @Serializer\Type("string")
50
     */
51
    public string $currencyCode;
52
53
    /**
54
     * @Serializer\Type("bool")
55
     */
56
    public bool $requireState;
57
58
    /**
59
     * @Serializer\Type("integer")
60
     */
61
    public int $addressType;
62
63
    /**
64
     * @Serializer\Type("integer")
65
     */
66
    public int $siteNomen;
67
68
    /**
69
     * @Serializer\Type("integer")
70
     */
71
    public ?int $defaultOfficeId = null;
72
73
    /**
74
     * @Serializer\Type("array")
75
     */
76
    public array $streetTypes;
77
78
    /**
79
     * @Serializer\Type("array")
80
     */
81
    public array $complexTypes;
82
83 6
    public function setId(int $id): void
84
    {
85 6
        $this->id = $id;
86
    }
87
88 3
    public function getId(): int
89
    {
90 3
        return $this->id;
91
    }
92
93 6
    public function setName(string $name): void
94
    {
95 6
        $this->name = $name;
96
    }
97
98 3
    public function getName(): string
99
    {
100 3
        return $this->name;
101
    }
102
103 6
    public function setIsoAlpha2(string $isoAlpha2): void
104
    {
105 6
        $this->isoAlpha2 = $isoAlpha2;
106
    }
107
108 3
    public function getIsoAlpha2(): string
109
    {
110 3
        return $this->isoAlpha2;
111
    }
112
113 6
    public function setIsoAlpha3(string $isoAlpha3): void
114
    {
115 6
        $this->isoAlpha3 = $isoAlpha3;
116
    }
117
118 1
    public function getIsoAlpha3(): string
119
    {
120 1
        return $this->isoAlpha3;
121
    }
122
123 6
    public function setCurrencyCode(string $currencyCode): void
124
    {
125 6
        $this->currencyCode = $currencyCode;
126
    }
127
128 1
    public function getCurrencyCode(): string
129
    {
130 1
        return $this->currencyCode;
131
    }
132
133 6
    public function setRequireState(bool $requireState): void
134
    {
135 6
        $this->requireState = $requireState;
136
    }
137
138 1
    public function getRequireState(): bool
139
    {
140 1
        return $this->requireState;
141
    }
142
143 6
    public function setAddressType(int $addressType): void
144
    {
145 6
        $this->addressType = $addressType;
146
    }
147
148 1
    public function getAddressType(): int
149
    {
150 1
        return $this->addressType;
151
    }
152
153 6
    public function setSiteNomen(int $siteNomen): void
154
    {
155 6
        $this->siteNomen = $siteNomen;
156
    }
157
158 1
    public function getSiteNomen(): int
159
    {
160 1
        return $this->siteNomen;
161
    }
162
163 6
    public function setStreetTypes(array $streetTypes): void
164
    {
165 6
        $this->streetTypes = $streetTypes;
166
    }
167
168 1
    public function getStreetTypes(): array
169
    {
170 1
        return $this->streetTypes;
171
    }
172
173 6
    public function setComplexTypes(array $complexTypes): void
174
    {
175 6
        $this->complexTypes = $complexTypes;
176
    }
177
178 1
    public function getComplexTypes(): array
179
    {
180 1
        return $this->complexTypes;
181
    }
182
183 6
    public function setPostCodeFormats(array $postCodeFormats): void
184
    {
185 6
        $this->postCodeFormats = $postCodeFormats;
186
    }
187
188 1
    public function getPostCodeFormats(): array
189
    {
190 1
        return $this->postCodeFormats;
191
    }
192
193 2
    public function setDefaultOfficeId(int $defaultOfficeId): void
194
    {
195 2
        $this->defaultOfficeId = $defaultOfficeId;
196
    }
197
198 1
    public function getDefaultOfficeId(): ?int
199
    {
200 1
        return $this->defaultOfficeId;
201
    }
202
203 1
    public function toArray(): array
204
    {
205 1
        return [];
206
    }
207
}
208