1 | <?php |
||
12 | final class SearchQuery implements QueryInterface |
||
13 | { |
||
14 | /** |
||
15 | * KvK number, identifying number for a registration in the Netherlands Business Register. Consists of 8 digits |
||
16 | * |
||
17 | * @var string |
||
18 | */ |
||
19 | private $kvkNumber; |
||
20 | |||
21 | /** |
||
22 | * Branch number (Vestigingsnummer), identifying number of a branch. Consists of 12 digits |
||
23 | * |
||
24 | * @var string |
||
25 | */ |
||
26 | private $branchNumber; |
||
27 | |||
28 | /** |
||
29 | * RSIN is an identification number for legal entities and partnerships. Consist of only digits |
||
30 | * |
||
31 | * @var int |
||
32 | */ |
||
33 | private $rsin; |
||
34 | |||
35 | /** |
||
36 | * Street of an address |
||
37 | * |
||
38 | * @var string |
||
39 | */ |
||
40 | private $street; |
||
41 | |||
42 | /** |
||
43 | * House number of an address |
||
44 | * |
||
45 | * @var string |
||
46 | */ |
||
47 | private $houseNumber; |
||
48 | |||
49 | /** |
||
50 | * Postal code or ZIP code, example 1000AA |
||
51 | * |
||
52 | * @var string |
||
53 | */ |
||
54 | private $postalCode; |
||
55 | |||
56 | /** |
||
57 | * City or Town name |
||
58 | * |
||
59 | * @var string |
||
60 | */ |
||
61 | private $city; |
||
62 | |||
63 | /** |
||
64 | * Indication to include searching through inactive dossiers/deregistered companies. |
||
65 | * @note History of inactive companies is after 1 January 2012 |
||
66 | * |
||
67 | * @var bool |
||
68 | */ |
||
69 | private $includeInactiveRegistrations; |
||
70 | |||
71 | /** |
||
72 | * restrictToMainBranch Search is restricted to main branches. |
||
73 | * |
||
74 | * @var bool |
||
75 | */ |
||
76 | private $restrictToMainBranch; |
||
77 | |||
78 | /** |
||
79 | * Defines the search collection for the query |
||
80 | * |
||
81 | * @var string |
||
82 | */ |
||
83 | private $site; |
||
84 | |||
85 | /** |
||
86 | * User can optionally add a context to identify his result later on |
||
87 | * |
||
88 | * @var string |
||
89 | */ |
||
90 | private $context; |
||
91 | |||
92 | /** |
||
93 | * Free format text search for in the compiled search description. |
||
94 | * |
||
95 | * @var string |
||
96 | */ |
||
97 | private $freeTextQuery; |
||
98 | |||
99 | 70 | public function getStreet(): ?string |
|
103 | |||
104 | 5 | public function setStreet(string $street): SearchQuery |
|
110 | |||
111 | 70 | public function getHouseNumber(): ?string |
|
115 | |||
116 | 5 | public function setHouseNumber(string $houseNumber): SearchQuery |
|
122 | |||
123 | 70 | public function getKvkNumber(): ?string |
|
127 | |||
128 | 21 | public function setKvkNumber(string $kvkNumber): SearchQuery |
|
134 | |||
135 | 70 | public function getBranchNumber(): ?string |
|
139 | |||
140 | 5 | public function setBranchNumber(string $branchNumber): SearchQuery |
|
146 | |||
147 | 70 | public function getRsin(): ?int |
|
151 | |||
152 | 5 | public function setRsin(int $rsin): SearchQuery |
|
158 | |||
159 | 70 | public function getPostalCode(): ?string |
|
163 | |||
164 | 5 | public function setPostalCode(string $postalCode): SearchQuery |
|
170 | |||
171 | 70 | public function getCity(): ?string |
|
175 | |||
176 | 5 | public function setCity(string $city): SearchQuery |
|
182 | |||
183 | 70 | public function isIncludeInactiveRegistrations(): ?bool |
|
187 | |||
188 | 2 | public function setIncludeInactiveRegistrations(bool $includeInactiveRegistrations): SearchQuery |
|
194 | |||
195 | 70 | public function isRestrictToMainBranch(): ?bool |
|
199 | |||
200 | 2 | public function setRestrictToMainBranch(bool $restrictToMainBranch): SearchQuery |
|
206 | |||
207 | 70 | public function getSite(): ?string |
|
211 | |||
212 | 5 | public function setSite(string $site): SearchQuery |
|
218 | |||
219 | 70 | public function getContext(): ?string |
|
223 | |||
224 | 5 | public function setContext(string $context): SearchQuery |
|
230 | |||
231 | 70 | public function getFreeTextQuery(): ?string |
|
235 | |||
236 | 5 | public function setFreeTextQuery(string $freeTextQuery): SearchQuery |
|
242 | |||
243 | 70 | public function get(): array |
|
260 | } |
||
261 |