Total Complexity | 8 |
Total Lines | 54 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
17 | class FindCountryRequest |
||
18 | { |
||
19 | private ?string $name = null; |
||
20 | |||
21 | private ?string $isoAlpha2 = null; |
||
22 | |||
23 | 2 | private ?string $isoAlpha3 = null; |
|
24 | |||
25 | 2 | public function __construct(?string $name, ?string $isoAlpha2, ?string $isoAlpha3) |
|
30 | 1 | } |
|
31 | |||
32 | public function setName(string $name): void |
||
33 | 1 | { |
|
34 | $this->name = $name; |
||
35 | 1 | } |
|
36 | |||
37 | public function getName(): ?string |
||
38 | 1 | { |
|
39 | return $this->name; |
||
40 | 1 | } |
|
41 | |||
42 | public function setIsoAlpha2(string $isoAlpha2): void |
||
45 | 1 | } |
|
46 | |||
47 | public function getIsoAlpha2(): ?string |
||
48 | 1 | { |
|
49 | return $this->isoAlpha2; |
||
50 | 1 | } |
|
51 | |||
52 | public function setIsoAlpha3(string $isoAlpha3): void |
||
53 | 1 | { |
|
54 | $this->isoAlpha3 = $isoAlpha3; |
||
55 | 1 | } |
|
56 | |||
57 | public function getIsoAlpha3(): ?string |
||
58 | { |
||
59 | return $this->isoAlpha3; |
||
60 | } |
||
61 | 1 | ||
62 | /** |
||
63 | 1 | * @return array<string,string|null> |
|
64 | 1 | */ |
|
65 | 1 | public function toArray(): array |
|
71 | ]; |
||
72 | } |
||
73 | } |
||
74 |