Total Complexity | 11 |
Total Lines | 68 |
Duplicated Lines | 0 % |
Coverage | 82.61% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
20 | class FindSiteRequest |
||
21 | { |
||
22 | use ToArray; |
||
23 | |||
24 | private int $countryId; |
||
25 | |||
26 | private ?string $name = null; |
||
27 | |||
28 | private ?string $postCode = null; |
||
29 | |||
30 | private ?string $type = null; |
||
31 | |||
32 | private ?string $municipality = null; |
||
33 | |||
34 | 5 | public function __construct(int $countryId, ?string $name) |
|
35 | { |
||
36 | 5 | $this->countryId = $countryId; |
|
37 | 5 | $this->name = $name; |
|
38 | } |
||
39 | |||
40 | 1 | public function getCountryId(): int |
|
41 | { |
||
42 | 1 | return $this->countryId; |
|
43 | } |
||
44 | |||
45 | public function setCountryId(int $countryId): void |
||
46 | { |
||
47 | $this->countryId = $countryId; |
||
48 | } |
||
49 | |||
50 | 1 | public function getName(): ?string |
|
53 | } |
||
54 | |||
55 | public function setName(?string $name): void |
||
56 | { |
||
57 | $this->name = $name; |
||
58 | } |
||
59 | |||
60 | 1 | public function getPostCode(): ?string |
|
63 | } |
||
64 | |||
65 | 1 | public function setPostCode(?string $postCode): void |
|
66 | { |
||
67 | 1 | $this->postCode = $postCode; |
|
68 | } |
||
69 | |||
70 | 1 | public function getType(): ?string |
|
71 | { |
||
72 | 1 | return $this->type; |
|
73 | } |
||
74 | |||
75 | 1 | public function setType(?string $type): void |
|
78 | } |
||
79 | |||
80 | 1 | public function getMunicipality(): ?string |
|
81 | { |
||
82 | 1 | return $this->municipality; |
|
83 | } |
||
84 | |||
85 | 1 | public function setMunicipality(?string $municipality): void |
|
88 | } |
||
89 | } |
||
90 |