Total Complexity | 145 |
Total Lines | 1067 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
Complex classes like PointRetrait often do a lot of different things. To break such a class down, we need to identify a cohesive component within that class. A common approach to find such a component is to look for fields/methods that share the same prefixes, or suffixes.
Once you have determined the fields that belong together, you can apply the Extract Class refactoring. If the component makes sense as a sub-class, Extract Subclass is also a candidate, and is often faster.
While breaking up the class, it is a good idea to analyze how other classes use PointRetrait, and based on these observations, apply Extract Interface, too.
1 | <?php |
||
12 | class PointRetrait extends AbstractStructBase |
||
13 | { |
||
14 | /** |
||
15 | * The codePays |
||
16 | * Meta information extracted from the WSDL |
||
17 | * - minOccurs: 0 |
||
18 | * @var string |
||
19 | */ |
||
20 | public $codePays; |
||
21 | /** |
||
22 | * The langue |
||
23 | * Meta information extracted from the WSDL |
||
24 | * - minOccurs: 0 |
||
25 | * @var string |
||
26 | */ |
||
27 | public $langue; |
||
28 | /** |
||
29 | * The libellePays |
||
30 | * Meta information extracted from the WSDL |
||
31 | * - minOccurs: 0 |
||
32 | * @var string |
||
33 | */ |
||
34 | public $libellePays; |
||
35 | /** |
||
36 | * The loanOfHandlingTool |
||
37 | * @var bool |
||
38 | */ |
||
39 | public $loanOfHandlingTool; |
||
40 | /** |
||
41 | * The parking |
||
42 | * @var bool |
||
43 | */ |
||
44 | public $parking; |
||
45 | /** |
||
46 | * The reseau |
||
47 | * Meta information extracted from the WSDL |
||
48 | * - minOccurs: 0 |
||
49 | * @var string |
||
50 | */ |
||
51 | public $reseau; |
||
52 | /** |
||
53 | * The accesPersonneMobiliteReduite |
||
54 | * @var bool |
||
55 | */ |
||
56 | public $accesPersonneMobiliteReduite; |
||
57 | /** |
||
58 | * The adresse1 |
||
59 | * Meta information extracted from the WSDL |
||
60 | * - minOccurs: 0 |
||
61 | * @var string |
||
62 | */ |
||
63 | public $adresse1; |
||
64 | /** |
||
65 | * The adresse2 |
||
66 | * Meta information extracted from the WSDL |
||
67 | * - minOccurs: 0 |
||
68 | * @var string |
||
69 | */ |
||
70 | public $adresse2; |
||
71 | /** |
||
72 | * The adresse3 |
||
73 | * Meta information extracted from the WSDL |
||
74 | * - minOccurs: 0 |
||
75 | * @var string |
||
76 | */ |
||
77 | public $adresse3; |
||
78 | /** |
||
79 | * The codePostal |
||
80 | * Meta information extracted from the WSDL |
||
81 | * - minOccurs: 0 |
||
82 | * @var string |
||
83 | */ |
||
84 | public $codePostal; |
||
85 | /** |
||
86 | * The congesPartiel |
||
87 | * @var bool |
||
88 | */ |
||
89 | public $congesPartiel; |
||
90 | /** |
||
91 | * The congesTotal |
||
92 | * @var bool |
||
93 | */ |
||
94 | public $congesTotal; |
||
95 | /** |
||
96 | * The coordGeolocalisationLatitude |
||
97 | * Meta information extracted from the WSDL |
||
98 | * - minOccurs: 0 |
||
99 | * @var string |
||
100 | */ |
||
101 | public $coordGeolocalisationLatitude; |
||
102 | /** |
||
103 | * The coordGeolocalisationLongitude |
||
104 | * Meta information extracted from the WSDL |
||
105 | * - minOccurs: 0 |
||
106 | * @var string |
||
107 | */ |
||
108 | public $coordGeolocalisationLongitude; |
||
109 | /** |
||
110 | * The distanceEnMetre |
||
111 | * @var int |
||
112 | */ |
||
113 | public $distanceEnMetre; |
||
114 | /** |
||
115 | * The horairesOuvertureDimanche |
||
116 | * Meta information extracted from the WSDL |
||
117 | * - minOccurs: 0 |
||
118 | * @var string |
||
119 | */ |
||
120 | public $horairesOuvertureDimanche; |
||
121 | /** |
||
122 | * The horairesOuvertureJeudi |
||
123 | * Meta information extracted from the WSDL |
||
124 | * - minOccurs: 0 |
||
125 | * @var string |
||
126 | */ |
||
127 | public $horairesOuvertureJeudi; |
||
128 | /** |
||
129 | * The horairesOuvertureLundi |
||
130 | * Meta information extracted from the WSDL |
||
131 | * - minOccurs: 0 |
||
132 | * @var string |
||
133 | */ |
||
134 | public $horairesOuvertureLundi; |
||
135 | /** |
||
136 | * The horairesOuvertureMardi |
||
137 | * Meta information extracted from the WSDL |
||
138 | * - minOccurs: 0 |
||
139 | * @var string |
||
140 | */ |
||
141 | public $horairesOuvertureMardi; |
||
142 | /** |
||
143 | * The horairesOuvertureMercredi |
||
144 | * Meta information extracted from the WSDL |
||
145 | * - minOccurs: 0 |
||
146 | * @var string |
||
147 | */ |
||
148 | public $horairesOuvertureMercredi; |
||
149 | /** |
||
150 | * The horairesOuvertureSamedi |
||
151 | * Meta information extracted from the WSDL |
||
152 | * - minOccurs: 0 |
||
153 | * @var string |
||
154 | */ |
||
155 | public $horairesOuvertureSamedi; |
||
156 | /** |
||
157 | * The horairesOuvertureVendredi |
||
158 | * Meta information extracted from the WSDL |
||
159 | * - minOccurs: 0 |
||
160 | * @var string |
||
161 | */ |
||
162 | public $horairesOuvertureVendredi; |
||
163 | /** |
||
164 | * The identifiant |
||
165 | * Meta information extracted from the WSDL |
||
166 | * - minOccurs: 0 |
||
167 | * @var string |
||
168 | */ |
||
169 | public $identifiant; |
||
170 | /** |
||
171 | * The indiceDeLocalisation |
||
172 | * Meta information extracted from the WSDL |
||
173 | * - minOccurs: 0 |
||
174 | * @var string |
||
175 | */ |
||
176 | public $indiceDeLocalisation; |
||
177 | /** |
||
178 | * The listeConges |
||
179 | * Meta information extracted from the WSDL |
||
180 | * - maxOccurs: unbounded |
||
181 | * - minOccurs: 0 |
||
182 | * - nillable: true |
||
183 | * @var \ColissimoPickupPoint\StructType\Conges[] |
||
184 | */ |
||
185 | public $listeConges; |
||
186 | /** |
||
187 | * The localite |
||
188 | * Meta information extracted from the WSDL |
||
189 | * - minOccurs: 0 |
||
190 | * @var string |
||
191 | */ |
||
192 | public $localite; |
||
193 | /** |
||
194 | * The nom |
||
195 | * Meta information extracted from the WSDL |
||
196 | * - minOccurs: 0 |
||
197 | * @var string |
||
198 | */ |
||
199 | public $nom; |
||
200 | /** |
||
201 | * The periodeActiviteHoraireDeb |
||
202 | * Meta information extracted from the WSDL |
||
203 | * - minOccurs: 0 |
||
204 | * @var string |
||
205 | */ |
||
206 | public $periodeActiviteHoraireDeb; |
||
207 | /** |
||
208 | * The periodeActiviteHoraireFin |
||
209 | * Meta information extracted from the WSDL |
||
210 | * - minOccurs: 0 |
||
211 | * @var string |
||
212 | */ |
||
213 | public $periodeActiviteHoraireFin; |
||
214 | /** |
||
215 | * The poidsMaxi |
||
216 | * @var int |
||
217 | */ |
||
218 | public $poidsMaxi; |
||
219 | /** |
||
220 | * The typeDePoint |
||
221 | * Meta information extracted from the WSDL |
||
222 | * - minOccurs: 0 |
||
223 | * @var string |
||
224 | */ |
||
225 | public $typeDePoint; |
||
226 | /** |
||
227 | * Constructor method for PointRetrait |
||
228 | * @uses PointRetrait::setCodePays() |
||
229 | * @uses PointRetrait::setLangue() |
||
230 | * @uses PointRetrait::setLibellePays() |
||
231 | * @uses PointRetrait::setLoanOfHandlingTool() |
||
232 | * @uses PointRetrait::setParking() |
||
233 | * @uses PointRetrait::setReseau() |
||
234 | * @uses PointRetrait::setAccesPersonneMobiliteReduite() |
||
235 | * @uses PointRetrait::setAdresse1() |
||
236 | * @uses PointRetrait::setAdresse2() |
||
237 | * @uses PointRetrait::setAdresse3() |
||
238 | * @uses PointRetrait::setCodePostal() |
||
239 | * @uses PointRetrait::setCongesPartiel() |
||
240 | * @uses PointRetrait::setCongesTotal() |
||
241 | * @uses PointRetrait::setCoordGeolocalisationLatitude() |
||
242 | * @uses PointRetrait::setCoordGeolocalisationLongitude() |
||
243 | * @uses PointRetrait::setDistanceEnMetre() |
||
244 | * @uses PointRetrait::setHorairesOuvertureDimanche() |
||
245 | * @uses PointRetrait::setHorairesOuvertureJeudi() |
||
246 | * @uses PointRetrait::setHorairesOuvertureLundi() |
||
247 | * @uses PointRetrait::setHorairesOuvertureMardi() |
||
248 | * @uses PointRetrait::setHorairesOuvertureMercredi() |
||
249 | * @uses PointRetrait::setHorairesOuvertureSamedi() |
||
250 | * @uses PointRetrait::setHorairesOuvertureVendredi() |
||
251 | * @uses PointRetrait::setIdentifiant() |
||
252 | * @uses PointRetrait::setIndiceDeLocalisation() |
||
253 | * @uses PointRetrait::setListeConges() |
||
254 | * @uses PointRetrait::setLocalite() |
||
255 | * @uses PointRetrait::setNom() |
||
256 | * @uses PointRetrait::setPeriodeActiviteHoraireDeb() |
||
257 | * @uses PointRetrait::setPeriodeActiviteHoraireFin() |
||
258 | * @uses PointRetrait::setPoidsMaxi() |
||
259 | * @uses PointRetrait::setTypeDePoint() |
||
260 | * @param string $codePays |
||
261 | * @param string $langue |
||
262 | * @param string $libellePays |
||
263 | * @param bool $loanOfHandlingTool |
||
264 | * @param bool $parking |
||
265 | * @param string $reseau |
||
266 | * @param bool $accesPersonneMobiliteReduite |
||
267 | * @param string $adresse1 |
||
268 | * @param string $adresse2 |
||
269 | * @param string $adresse3 |
||
270 | * @param string $codePostal |
||
271 | * @param bool $congesPartiel |
||
272 | * @param bool $congesTotal |
||
273 | * @param string $coordGeolocalisationLatitude |
||
274 | * @param string $coordGeolocalisationLongitude |
||
275 | * @param int $distanceEnMetre |
||
276 | * @param string $horairesOuvertureDimanche |
||
277 | * @param string $horairesOuvertureJeudi |
||
278 | * @param string $horairesOuvertureLundi |
||
279 | * @param string $horairesOuvertureMardi |
||
280 | * @param string $horairesOuvertureMercredi |
||
281 | * @param string $horairesOuvertureSamedi |
||
282 | * @param string $horairesOuvertureVendredi |
||
283 | * @param string $identifiant |
||
284 | * @param string $indiceDeLocalisation |
||
285 | * @param \ColissimoPickupPoint\StructType\Conges[] $listeConges |
||
286 | * @param string $localite |
||
287 | * @param string $nom |
||
288 | * @param string $periodeActiviteHoraireDeb |
||
289 | * @param string $periodeActiviteHoraireFin |
||
290 | * @param int $poidsMaxi |
||
291 | * @param string $typeDePoint |
||
292 | */ |
||
293 | public function __construct($codePays = null, $langue = null, $libellePays = null, $loanOfHandlingTool = null, $parking = null, $reseau = null, $accesPersonneMobiliteReduite = null, $adresse1 = null, $adresse2 = null, $adresse3 = null, $codePostal = null, $congesPartiel = null, $congesTotal = null, $coordGeolocalisationLatitude = null, $coordGeolocalisationLongitude = null, $distanceEnMetre = null, $horairesOuvertureDimanche = null, $horairesOuvertureJeudi = null, $horairesOuvertureLundi = null, $horairesOuvertureMardi = null, $horairesOuvertureMercredi = null, $horairesOuvertureSamedi = null, $horairesOuvertureVendredi = null, $identifiant = null, $indiceDeLocalisation = null, array $listeConges = array(), $localite = null, $nom = null, $periodeActiviteHoraireDeb = null, $periodeActiviteHoraireFin = null, $poidsMaxi = null, $typeDePoint = null) |
||
294 | { |
||
295 | $this |
||
296 | ->setCodePays($codePays) |
||
297 | ->setLangue($langue) |
||
298 | ->setLibellePays($libellePays) |
||
299 | ->setLoanOfHandlingTool($loanOfHandlingTool) |
||
300 | ->setParking($parking) |
||
301 | ->setReseau($reseau) |
||
302 | ->setAccesPersonneMobiliteReduite($accesPersonneMobiliteReduite) |
||
303 | ->setAdresse1($adresse1) |
||
304 | ->setAdresse2($adresse2) |
||
305 | ->setAdresse3($adresse3) |
||
306 | ->setCodePostal($codePostal) |
||
307 | ->setCongesPartiel($congesPartiel) |
||
308 | ->setCongesTotal($congesTotal) |
||
309 | ->setCoordGeolocalisationLatitude($coordGeolocalisationLatitude) |
||
310 | ->setCoordGeolocalisationLongitude($coordGeolocalisationLongitude) |
||
311 | ->setDistanceEnMetre($distanceEnMetre) |
||
312 | ->setHorairesOuvertureDimanche($horairesOuvertureDimanche) |
||
313 | ->setHorairesOuvertureJeudi($horairesOuvertureJeudi) |
||
314 | ->setHorairesOuvertureLundi($horairesOuvertureLundi) |
||
315 | ->setHorairesOuvertureMardi($horairesOuvertureMardi) |
||
316 | ->setHorairesOuvertureMercredi($horairesOuvertureMercredi) |
||
317 | ->setHorairesOuvertureSamedi($horairesOuvertureSamedi) |
||
318 | ->setHorairesOuvertureVendredi($horairesOuvertureVendredi) |
||
319 | ->setIdentifiant($identifiant) |
||
320 | ->setIndiceDeLocalisation($indiceDeLocalisation) |
||
321 | ->setListeConges($listeConges) |
||
322 | ->setLocalite($localite) |
||
323 | ->setNom($nom) |
||
324 | ->setPeriodeActiviteHoraireDeb($periodeActiviteHoraireDeb) |
||
325 | ->setPeriodeActiviteHoraireFin($periodeActiviteHoraireFin) |
||
326 | ->setPoidsMaxi($poidsMaxi) |
||
327 | ->setTypeDePoint($typeDePoint); |
||
328 | } |
||
329 | /** |
||
330 | * Get codePays value |
||
331 | * @return string|null |
||
332 | */ |
||
333 | public function getCodePays() |
||
334 | { |
||
335 | return $this->codePays; |
||
336 | } |
||
337 | /** |
||
338 | * Set codePays value |
||
339 | * @param string $codePays |
||
340 | * @return \ColissimoPickupPoint\StructType\PointRetrait |
||
341 | */ |
||
342 | public function setCodePays($codePays = null) |
||
343 | { |
||
344 | // validation for constraint: string |
||
345 | if (!is_null($codePays) && !is_string($codePays)) { |
||
|
|||
346 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($codePays, true), gettype($codePays)), __LINE__); |
||
347 | } |
||
348 | $this->codePays = $codePays; |
||
349 | return $this; |
||
350 | } |
||
351 | /** |
||
352 | * Get langue value |
||
353 | * @return string|null |
||
354 | */ |
||
355 | public function getLangue() |
||
356 | { |
||
357 | return $this->langue; |
||
358 | } |
||
359 | /** |
||
360 | * Set langue value |
||
361 | * @param string $langue |
||
362 | * @return \ColissimoPickupPoint\StructType\PointRetrait |
||
363 | */ |
||
364 | public function setLangue($langue = null) |
||
365 | { |
||
366 | // validation for constraint: string |
||
367 | if (!is_null($langue) && !is_string($langue)) { |
||
368 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($langue, true), gettype($langue)), __LINE__); |
||
369 | } |
||
370 | $this->langue = $langue; |
||
371 | return $this; |
||
372 | } |
||
373 | /** |
||
374 | * Get libellePays value |
||
375 | * @return string|null |
||
376 | */ |
||
377 | public function getLibellePays() |
||
378 | { |
||
379 | return $this->libellePays; |
||
380 | } |
||
381 | /** |
||
382 | * Set libellePays value |
||
383 | * @param string $libellePays |
||
384 | * @return \ColissimoPickupPoint\StructType\PointRetrait |
||
385 | */ |
||
386 | public function setLibellePays($libellePays = null) |
||
387 | { |
||
388 | // validation for constraint: string |
||
389 | if (!is_null($libellePays) && !is_string($libellePays)) { |
||
390 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($libellePays, true), gettype($libellePays)), __LINE__); |
||
391 | } |
||
392 | $this->libellePays = $libellePays; |
||
393 | return $this; |
||
394 | } |
||
395 | /** |
||
396 | * Get loanOfHandlingTool value |
||
397 | * @return bool|null |
||
398 | */ |
||
399 | public function getLoanOfHandlingTool() |
||
400 | { |
||
401 | return $this->loanOfHandlingTool; |
||
402 | } |
||
403 | /** |
||
404 | * Set loanOfHandlingTool value |
||
405 | * @param bool $loanOfHandlingTool |
||
406 | * @return \ColissimoPickupPoint\StructType\PointRetrait |
||
407 | */ |
||
408 | public function setLoanOfHandlingTool($loanOfHandlingTool = null) |
||
409 | { |
||
410 | // validation for constraint: boolean |
||
411 | if (!is_null($loanOfHandlingTool) && !is_bool($loanOfHandlingTool)) { |
||
412 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($loanOfHandlingTool, true), gettype($loanOfHandlingTool)), __LINE__); |
||
413 | } |
||
414 | $this->loanOfHandlingTool = $loanOfHandlingTool; |
||
415 | return $this; |
||
416 | } |
||
417 | /** |
||
418 | * Get parking value |
||
419 | * @return bool|null |
||
420 | */ |
||
421 | public function getParking() |
||
422 | { |
||
423 | return $this->parking; |
||
424 | } |
||
425 | /** |
||
426 | * Set parking value |
||
427 | * @param bool $parking |
||
428 | * @return \ColissimoPickupPoint\StructType\PointRetrait |
||
429 | */ |
||
430 | public function setParking($parking = null) |
||
431 | { |
||
432 | // validation for constraint: boolean |
||
433 | if (!is_null($parking) && !is_bool($parking)) { |
||
434 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($parking, true), gettype($parking)), __LINE__); |
||
435 | } |
||
436 | $this->parking = $parking; |
||
437 | return $this; |
||
438 | } |
||
439 | /** |
||
440 | * Get reseau value |
||
441 | * @return string|null |
||
442 | */ |
||
443 | public function getReseau() |
||
444 | { |
||
445 | return $this->reseau; |
||
446 | } |
||
447 | /** |
||
448 | * Set reseau value |
||
449 | * @param string $reseau |
||
450 | * @return \ColissimoPickupPoint\StructType\PointRetrait |
||
451 | */ |
||
452 | public function setReseau($reseau = null) |
||
453 | { |
||
454 | // validation for constraint: string |
||
455 | if (!is_null($reseau) && !is_string($reseau)) { |
||
456 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($reseau, true), gettype($reseau)), __LINE__); |
||
457 | } |
||
458 | $this->reseau = $reseau; |
||
459 | return $this; |
||
460 | } |
||
461 | /** |
||
462 | * Get accesPersonneMobiliteReduite value |
||
463 | * @return bool|null |
||
464 | */ |
||
465 | public function getAccesPersonneMobiliteReduite() |
||
466 | { |
||
467 | return $this->accesPersonneMobiliteReduite; |
||
468 | } |
||
469 | /** |
||
470 | * Set accesPersonneMobiliteReduite value |
||
471 | * @param bool $accesPersonneMobiliteReduite |
||
472 | * @return \ColissimoPickupPoint\StructType\PointRetrait |
||
473 | */ |
||
474 | public function setAccesPersonneMobiliteReduite($accesPersonneMobiliteReduite = null) |
||
475 | { |
||
476 | // validation for constraint: boolean |
||
477 | if (!is_null($accesPersonneMobiliteReduite) && !is_bool($accesPersonneMobiliteReduite)) { |
||
478 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($accesPersonneMobiliteReduite, true), gettype($accesPersonneMobiliteReduite)), __LINE__); |
||
479 | } |
||
480 | $this->accesPersonneMobiliteReduite = $accesPersonneMobiliteReduite; |
||
481 | return $this; |
||
482 | } |
||
483 | /** |
||
484 | * Get adresse1 value |
||
485 | * @return string|null |
||
486 | */ |
||
487 | public function getAdresse1() |
||
488 | { |
||
489 | return $this->adresse1; |
||
490 | } |
||
491 | /** |
||
492 | * Set adresse1 value |
||
493 | * @param string $adresse1 |
||
494 | * @return \ColissimoPickupPoint\StructType\PointRetrait |
||
495 | */ |
||
496 | public function setAdresse1($adresse1 = null) |
||
497 | { |
||
498 | // validation for constraint: string |
||
499 | if (!is_null($adresse1) && !is_string($adresse1)) { |
||
500 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($adresse1, true), gettype($adresse1)), __LINE__); |
||
501 | } |
||
502 | $this->adresse1 = $adresse1; |
||
503 | return $this; |
||
504 | } |
||
505 | /** |
||
506 | * Get adresse2 value |
||
507 | * @return string|null |
||
508 | */ |
||
509 | public function getAdresse2() |
||
510 | { |
||
511 | return $this->adresse2; |
||
512 | } |
||
513 | /** |
||
514 | * Set adresse2 value |
||
515 | * @param string $adresse2 |
||
516 | * @return \ColissimoPickupPoint\StructType\PointRetrait |
||
517 | */ |
||
518 | public function setAdresse2($adresse2 = null) |
||
519 | { |
||
520 | // validation for constraint: string |
||
521 | if (!is_null($adresse2) && !is_string($adresse2)) { |
||
522 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($adresse2, true), gettype($adresse2)), __LINE__); |
||
523 | } |
||
524 | $this->adresse2 = $adresse2; |
||
525 | return $this; |
||
526 | } |
||
527 | /** |
||
528 | * Get adresse3 value |
||
529 | * @return string|null |
||
530 | */ |
||
531 | public function getAdresse3() |
||
532 | { |
||
533 | return $this->adresse3; |
||
534 | } |
||
535 | /** |
||
536 | * Set adresse3 value |
||
537 | * @param string $adresse3 |
||
538 | * @return \ColissimoPickupPoint\StructType\PointRetrait |
||
539 | */ |
||
540 | public function setAdresse3($adresse3 = null) |
||
541 | { |
||
542 | // validation for constraint: string |
||
543 | if (!is_null($adresse3) && !is_string($adresse3)) { |
||
544 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($adresse3, true), gettype($adresse3)), __LINE__); |
||
545 | } |
||
546 | $this->adresse3 = $adresse3; |
||
547 | return $this; |
||
548 | } |
||
549 | /** |
||
550 | * Get codePostal value |
||
551 | * @return string|null |
||
552 | */ |
||
553 | public function getCodePostal() |
||
554 | { |
||
555 | return $this->codePostal; |
||
556 | } |
||
557 | /** |
||
558 | * Set codePostal value |
||
559 | * @param string $codePostal |
||
560 | * @return \ColissimoPickupPoint\StructType\PointRetrait |
||
561 | */ |
||
562 | public function setCodePostal($codePostal = null) |
||
563 | { |
||
564 | // validation for constraint: string |
||
565 | if (!is_null($codePostal) && !is_string($codePostal)) { |
||
566 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($codePostal, true), gettype($codePostal)), __LINE__); |
||
567 | } |
||
568 | $this->codePostal = $codePostal; |
||
569 | return $this; |
||
570 | } |
||
571 | /** |
||
572 | * Get congesPartiel value |
||
573 | * @return bool|null |
||
574 | */ |
||
575 | public function getCongesPartiel() |
||
576 | { |
||
577 | return $this->congesPartiel; |
||
578 | } |
||
579 | /** |
||
580 | * Set congesPartiel value |
||
581 | * @param bool $congesPartiel |
||
582 | * @return \ColissimoPickupPoint\StructType\PointRetrait |
||
583 | */ |
||
584 | public function setCongesPartiel($congesPartiel = null) |
||
585 | { |
||
586 | // validation for constraint: boolean |
||
587 | if (!is_null($congesPartiel) && !is_bool($congesPartiel)) { |
||
588 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($congesPartiel, true), gettype($congesPartiel)), __LINE__); |
||
589 | } |
||
590 | $this->congesPartiel = $congesPartiel; |
||
591 | return $this; |
||
592 | } |
||
593 | /** |
||
594 | * Get congesTotal value |
||
595 | * @return bool|null |
||
596 | */ |
||
597 | public function getCongesTotal() |
||
598 | { |
||
599 | return $this->congesTotal; |
||
600 | } |
||
601 | /** |
||
602 | * Set congesTotal value |
||
603 | * @param bool $congesTotal |
||
604 | * @return \ColissimoPickupPoint\StructType\PointRetrait |
||
605 | */ |
||
606 | public function setCongesTotal($congesTotal = null) |
||
607 | { |
||
608 | // validation for constraint: boolean |
||
609 | if (!is_null($congesTotal) && !is_bool($congesTotal)) { |
||
610 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($congesTotal, true), gettype($congesTotal)), __LINE__); |
||
611 | } |
||
612 | $this->congesTotal = $congesTotal; |
||
613 | return $this; |
||
614 | } |
||
615 | /** |
||
616 | * Get coordGeolocalisationLatitude value |
||
617 | * @return string|null |
||
618 | */ |
||
619 | public function getCoordGeolocalisationLatitude() |
||
620 | { |
||
621 | return $this->coordGeolocalisationLatitude; |
||
622 | } |
||
623 | /** |
||
624 | * Set coordGeolocalisationLatitude value |
||
625 | * @param string $coordGeolocalisationLatitude |
||
626 | * @return \ColissimoPickupPoint\StructType\PointRetrait |
||
627 | */ |
||
628 | public function setCoordGeolocalisationLatitude($coordGeolocalisationLatitude = null) |
||
629 | { |
||
630 | // validation for constraint: string |
||
631 | if (!is_null($coordGeolocalisationLatitude) && !is_string($coordGeolocalisationLatitude)) { |
||
632 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($coordGeolocalisationLatitude, true), gettype($coordGeolocalisationLatitude)), __LINE__); |
||
633 | } |
||
634 | $this->coordGeolocalisationLatitude = $coordGeolocalisationLatitude; |
||
635 | return $this; |
||
636 | } |
||
637 | /** |
||
638 | * Get coordGeolocalisationLongitude value |
||
639 | * @return string|null |
||
640 | */ |
||
641 | public function getCoordGeolocalisationLongitude() |
||
642 | { |
||
643 | return $this->coordGeolocalisationLongitude; |
||
644 | } |
||
645 | /** |
||
646 | * Set coordGeolocalisationLongitude value |
||
647 | * @param string $coordGeolocalisationLongitude |
||
648 | * @return \ColissimoPickupPoint\StructType\PointRetrait |
||
649 | */ |
||
650 | public function setCoordGeolocalisationLongitude($coordGeolocalisationLongitude = null) |
||
651 | { |
||
652 | // validation for constraint: string |
||
653 | if (!is_null($coordGeolocalisationLongitude) && !is_string($coordGeolocalisationLongitude)) { |
||
654 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($coordGeolocalisationLongitude, true), gettype($coordGeolocalisationLongitude)), __LINE__); |
||
655 | } |
||
656 | $this->coordGeolocalisationLongitude = $coordGeolocalisationLongitude; |
||
657 | return $this; |
||
658 | } |
||
659 | /** |
||
660 | * Get distanceEnMetre value |
||
661 | * @return int|null |
||
662 | */ |
||
663 | public function getDistanceEnMetre() |
||
664 | { |
||
665 | return $this->distanceEnMetre; |
||
666 | } |
||
667 | /** |
||
668 | * Set distanceEnMetre value |
||
669 | * @param int $distanceEnMetre |
||
670 | * @return \ColissimoPickupPoint\StructType\PointRetrait |
||
671 | */ |
||
672 | public function setDistanceEnMetre($distanceEnMetre = null) |
||
673 | { |
||
674 | // validation for constraint: int |
||
675 | if (!is_null($distanceEnMetre) && !(is_int($distanceEnMetre) || ctype_digit($distanceEnMetre))) { |
||
676 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide an integer value, %s given', var_export($distanceEnMetre, true), gettype($distanceEnMetre)), __LINE__); |
||
677 | } |
||
678 | $this->distanceEnMetre = $distanceEnMetre; |
||
679 | return $this; |
||
680 | } |
||
681 | /** |
||
682 | * Get horairesOuvertureDimanche value |
||
683 | * @return string|null |
||
684 | */ |
||
685 | public function getHorairesOuvertureDimanche() |
||
686 | { |
||
687 | return $this->horairesOuvertureDimanche; |
||
688 | } |
||
689 | /** |
||
690 | * Set horairesOuvertureDimanche value |
||
691 | * @param string $horairesOuvertureDimanche |
||
692 | * @return \ColissimoPickupPoint\StructType\PointRetrait |
||
693 | */ |
||
694 | public function setHorairesOuvertureDimanche($horairesOuvertureDimanche = null) |
||
695 | { |
||
696 | // validation for constraint: string |
||
697 | if (!is_null($horairesOuvertureDimanche) && !is_string($horairesOuvertureDimanche)) { |
||
698 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($horairesOuvertureDimanche, true), gettype($horairesOuvertureDimanche)), __LINE__); |
||
699 | } |
||
700 | $this->horairesOuvertureDimanche = $horairesOuvertureDimanche; |
||
701 | return $this; |
||
702 | } |
||
703 | /** |
||
704 | * Get horairesOuvertureJeudi value |
||
705 | * @return string|null |
||
706 | */ |
||
707 | public function getHorairesOuvertureJeudi() |
||
708 | { |
||
709 | return $this->horairesOuvertureJeudi; |
||
710 | } |
||
711 | /** |
||
712 | * Set horairesOuvertureJeudi value |
||
713 | * @param string $horairesOuvertureJeudi |
||
714 | * @return \ColissimoPickupPoint\StructType\PointRetrait |
||
715 | */ |
||
716 | public function setHorairesOuvertureJeudi($horairesOuvertureJeudi = null) |
||
717 | { |
||
718 | // validation for constraint: string |
||
719 | if (!is_null($horairesOuvertureJeudi) && !is_string($horairesOuvertureJeudi)) { |
||
720 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($horairesOuvertureJeudi, true), gettype($horairesOuvertureJeudi)), __LINE__); |
||
721 | } |
||
722 | $this->horairesOuvertureJeudi = $horairesOuvertureJeudi; |
||
723 | return $this; |
||
724 | } |
||
725 | /** |
||
726 | * Get horairesOuvertureLundi value |
||
727 | * @return string|null |
||
728 | */ |
||
729 | public function getHorairesOuvertureLundi() |
||
730 | { |
||
731 | return $this->horairesOuvertureLundi; |
||
732 | } |
||
733 | /** |
||
734 | * Set horairesOuvertureLundi value |
||
735 | * @param string $horairesOuvertureLundi |
||
736 | * @return \ColissimoPickupPoint\StructType\PointRetrait |
||
737 | */ |
||
738 | public function setHorairesOuvertureLundi($horairesOuvertureLundi = null) |
||
739 | { |
||
740 | // validation for constraint: string |
||
741 | if (!is_null($horairesOuvertureLundi) && !is_string($horairesOuvertureLundi)) { |
||
742 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($horairesOuvertureLundi, true), gettype($horairesOuvertureLundi)), __LINE__); |
||
743 | } |
||
744 | $this->horairesOuvertureLundi = $horairesOuvertureLundi; |
||
745 | return $this; |
||
746 | } |
||
747 | /** |
||
748 | * Get horairesOuvertureMardi value |
||
749 | * @return string|null |
||
750 | */ |
||
751 | public function getHorairesOuvertureMardi() |
||
752 | { |
||
753 | return $this->horairesOuvertureMardi; |
||
754 | } |
||
755 | /** |
||
756 | * Set horairesOuvertureMardi value |
||
757 | * @param string $horairesOuvertureMardi |
||
758 | * @return \ColissimoPickupPoint\StructType\PointRetrait |
||
759 | */ |
||
760 | public function setHorairesOuvertureMardi($horairesOuvertureMardi = null) |
||
761 | { |
||
762 | // validation for constraint: string |
||
763 | if (!is_null($horairesOuvertureMardi) && !is_string($horairesOuvertureMardi)) { |
||
764 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($horairesOuvertureMardi, true), gettype($horairesOuvertureMardi)), __LINE__); |
||
765 | } |
||
766 | $this->horairesOuvertureMardi = $horairesOuvertureMardi; |
||
767 | return $this; |
||
768 | } |
||
769 | /** |
||
770 | * Get horairesOuvertureMercredi value |
||
771 | * @return string|null |
||
772 | */ |
||
773 | public function getHorairesOuvertureMercredi() |
||
774 | { |
||
775 | return $this->horairesOuvertureMercredi; |
||
776 | } |
||
777 | /** |
||
778 | * Set horairesOuvertureMercredi value |
||
779 | * @param string $horairesOuvertureMercredi |
||
780 | * @return \ColissimoPickupPoint\StructType\PointRetrait |
||
781 | */ |
||
782 | public function setHorairesOuvertureMercredi($horairesOuvertureMercredi = null) |
||
783 | { |
||
784 | // validation for constraint: string |
||
785 | if (!is_null($horairesOuvertureMercredi) && !is_string($horairesOuvertureMercredi)) { |
||
786 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($horairesOuvertureMercredi, true), gettype($horairesOuvertureMercredi)), __LINE__); |
||
787 | } |
||
788 | $this->horairesOuvertureMercredi = $horairesOuvertureMercredi; |
||
789 | return $this; |
||
790 | } |
||
791 | /** |
||
792 | * Get horairesOuvertureSamedi value |
||
793 | * @return string|null |
||
794 | */ |
||
795 | public function getHorairesOuvertureSamedi() |
||
796 | { |
||
797 | return $this->horairesOuvertureSamedi; |
||
798 | } |
||
799 | /** |
||
800 | * Set horairesOuvertureSamedi value |
||
801 | * @param string $horairesOuvertureSamedi |
||
802 | * @return \ColissimoPickupPoint\StructType\PointRetrait |
||
803 | */ |
||
804 | public function setHorairesOuvertureSamedi($horairesOuvertureSamedi = null) |
||
805 | { |
||
806 | // validation for constraint: string |
||
807 | if (!is_null($horairesOuvertureSamedi) && !is_string($horairesOuvertureSamedi)) { |
||
808 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($horairesOuvertureSamedi, true), gettype($horairesOuvertureSamedi)), __LINE__); |
||
809 | } |
||
810 | $this->horairesOuvertureSamedi = $horairesOuvertureSamedi; |
||
811 | return $this; |
||
812 | } |
||
813 | /** |
||
814 | * Get horairesOuvertureVendredi value |
||
815 | * @return string|null |
||
816 | */ |
||
817 | public function getHorairesOuvertureVendredi() |
||
818 | { |
||
819 | return $this->horairesOuvertureVendredi; |
||
820 | } |
||
821 | /** |
||
822 | * Set horairesOuvertureVendredi value |
||
823 | * @param string $horairesOuvertureVendredi |
||
824 | * @return \ColissimoPickupPoint\StructType\PointRetrait |
||
825 | */ |
||
826 | public function setHorairesOuvertureVendredi($horairesOuvertureVendredi = null) |
||
827 | { |
||
828 | // validation for constraint: string |
||
829 | if (!is_null($horairesOuvertureVendredi) && !is_string($horairesOuvertureVendredi)) { |
||
830 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($horairesOuvertureVendredi, true), gettype($horairesOuvertureVendredi)), __LINE__); |
||
831 | } |
||
832 | $this->horairesOuvertureVendredi = $horairesOuvertureVendredi; |
||
833 | return $this; |
||
834 | } |
||
835 | /** |
||
836 | * Get identifiant value |
||
837 | * @return string|null |
||
838 | */ |
||
839 | public function getIdentifiant() |
||
840 | { |
||
841 | return $this->identifiant; |
||
842 | } |
||
843 | /** |
||
844 | * Set identifiant value |
||
845 | * @param string $identifiant |
||
846 | * @return \ColissimoPickupPoint\StructType\PointRetrait |
||
847 | */ |
||
848 | public function setIdentifiant($identifiant = null) |
||
849 | { |
||
850 | // validation for constraint: string |
||
851 | if (!is_null($identifiant) && !is_string($identifiant)) { |
||
852 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($identifiant, true), gettype($identifiant)), __LINE__); |
||
853 | } |
||
854 | $this->identifiant = $identifiant; |
||
855 | return $this; |
||
856 | } |
||
857 | /** |
||
858 | * Get indiceDeLocalisation value |
||
859 | * @return string|null |
||
860 | */ |
||
861 | public function getIndiceDeLocalisation() |
||
862 | { |
||
863 | return $this->indiceDeLocalisation; |
||
864 | } |
||
865 | /** |
||
866 | * Set indiceDeLocalisation value |
||
867 | * @param string $indiceDeLocalisation |
||
868 | * @return \ColissimoPickupPoint\StructType\PointRetrait |
||
869 | */ |
||
870 | public function setIndiceDeLocalisation($indiceDeLocalisation = null) |
||
871 | { |
||
872 | // validation for constraint: string |
||
873 | if (!is_null($indiceDeLocalisation) && !is_string($indiceDeLocalisation)) { |
||
874 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($indiceDeLocalisation, true), gettype($indiceDeLocalisation)), __LINE__); |
||
875 | } |
||
876 | $this->indiceDeLocalisation = $indiceDeLocalisation; |
||
877 | return $this; |
||
878 | } |
||
879 | /** |
||
880 | * Get listeConges value |
||
881 | * An additional test has been added (isset) before returning the property value as |
||
882 | * this property may have been unset before, due to the fact that this property is |
||
883 | * removable from the request (nillable=true+minOccurs=0) |
||
884 | * @return \ColissimoPickupPoint\StructType\Conges[]|null |
||
885 | */ |
||
886 | public function getListeConges() |
||
887 | { |
||
888 | return isset($this->listeConges) ? $this->listeConges : null; |
||
889 | } |
||
890 | /** |
||
891 | * This method is responsible for validating the values passed to the setListeConges method |
||
892 | * This method is willingly generated in order to preserve the one-line inline validation within the setListeConges method |
||
893 | * @param array $values |
||
894 | * @return string A non-empty message if the values does not match the validation rules |
||
895 | */ |
||
896 | public static function validateListeCongesForArrayConstraintsFromSetListeConges(array $values = array()) |
||
897 | { |
||
898 | $message = ''; |
||
899 | $invalidValues = []; |
||
900 | foreach ($values as $pointRetraitListeCongesItem) { |
||
901 | // validation for constraint: itemType |
||
902 | if (!$pointRetraitListeCongesItem instanceof \ColissimoPickupPoint\StructType\Conges) { |
||
903 | $invalidValues[] = is_object($pointRetraitListeCongesItem) ? get_class($pointRetraitListeCongesItem) : sprintf('%s(%s)', gettype($pointRetraitListeCongesItem), var_export($pointRetraitListeCongesItem, true)); |
||
904 | } |
||
905 | } |
||
906 | if (!empty($invalidValues)) { |
||
907 | $message = sprintf('The listeConges property can only contain items of type \ColissimoPickupPoint\StructType\Conges, %s given', is_object($invalidValues) ? get_class($invalidValues) : (is_array($invalidValues) ? implode(', ', $invalidValues) : gettype($invalidValues))); |
||
908 | } |
||
909 | unset($invalidValues); |
||
910 | return $message; |
||
911 | } |
||
912 | /** |
||
913 | * Set listeConges value |
||
914 | * This property is removable from request (nillable=true+minOccurs=0), therefore |
||
915 | * if the value assigned to this property is null, it is removed from this object |
||
916 | * @throws \InvalidArgumentException |
||
917 | * @param \ColissimoPickupPoint\StructType\Conges[] $listeConges |
||
918 | * @return \ColissimoPickupPoint\StructType\PointRetrait |
||
919 | */ |
||
920 | public function setListeConges(array $listeConges = array()) |
||
921 | { |
||
922 | // validation for constraint: array |
||
923 | if ('' !== ($listeCongesArrayErrorMessage = self::validateListeCongesForArrayConstraintsFromSetListeConges($listeConges))) { |
||
924 | throw new \InvalidArgumentException($listeCongesArrayErrorMessage, __LINE__); |
||
925 | } |
||
926 | if (is_null($listeConges) || (is_array($listeConges) && empty($listeConges))) { |
||
927 | unset($this->listeConges); |
||
928 | } else { |
||
929 | $this->listeConges = $listeConges; |
||
930 | } |
||
931 | return $this; |
||
932 | } |
||
933 | /** |
||
934 | * Add item to listeConges value |
||
935 | * @throws \InvalidArgumentException |
||
936 | * @param \ColissimoPickupPoint\StructType\Conges $item |
||
937 | * @return \ColissimoPickupPoint\StructType\PointRetrait |
||
938 | */ |
||
939 | public function addToListeConges(\ColissimoPickupPoint\StructType\Conges $item) |
||
940 | { |
||
941 | // validation for constraint: itemType |
||
942 | if (!$item instanceof \ColissimoPickupPoint\StructType\Conges) { |
||
943 | throw new \InvalidArgumentException(sprintf('The listeConges property can only contain items of type \ColissimoPickupPoint\StructType\Conges, %s given', is_object($item) ? get_class($item) : (is_array($item) ? implode(', ', $item) : gettype($item))), __LINE__); |
||
944 | } |
||
945 | $this->listeConges[] = $item; |
||
946 | return $this; |
||
947 | } |
||
948 | /** |
||
949 | * Get localite value |
||
950 | * @return string|null |
||
951 | */ |
||
952 | public function getLocalite() |
||
953 | { |
||
954 | return $this->localite; |
||
955 | } |
||
956 | /** |
||
957 | * Set localite value |
||
958 | * @param string $localite |
||
959 | * @return \ColissimoPickupPoint\StructType\PointRetrait |
||
960 | */ |
||
961 | public function setLocalite($localite = null) |
||
962 | { |
||
963 | // validation for constraint: string |
||
964 | if (!is_null($localite) && !is_string($localite)) { |
||
965 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($localite, true), gettype($localite)), __LINE__); |
||
966 | } |
||
967 | $this->localite = $localite; |
||
968 | return $this; |
||
969 | } |
||
970 | /** |
||
971 | * Get nom value |
||
972 | * @return string|null |
||
973 | */ |
||
974 | public function getNom() |
||
975 | { |
||
976 | return $this->nom; |
||
977 | } |
||
978 | /** |
||
979 | * Set nom value |
||
980 | * @param string $nom |
||
981 | * @return \ColissimoPickupPoint\StructType\PointRetrait |
||
982 | */ |
||
983 | public function setNom($nom = null) |
||
984 | { |
||
985 | // validation for constraint: string |
||
986 | if (!is_null($nom) && !is_string($nom)) { |
||
987 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($nom, true), gettype($nom)), __LINE__); |
||
988 | } |
||
989 | $this->nom = $nom; |
||
990 | return $this; |
||
991 | } |
||
992 | /** |
||
993 | * Get periodeActiviteHoraireDeb value |
||
994 | * @return string|null |
||
995 | */ |
||
996 | public function getPeriodeActiviteHoraireDeb() |
||
999 | } |
||
1000 | /** |
||
1001 | * Set periodeActiviteHoraireDeb value |
||
1002 | * @param string $periodeActiviteHoraireDeb |
||
1003 | * @return \ColissimoPickupPoint\StructType\PointRetrait |
||
1004 | */ |
||
1005 | public function setPeriodeActiviteHoraireDeb($periodeActiviteHoraireDeb = null) |
||
1006 | { |
||
1007 | // validation for constraint: string |
||
1008 | if (!is_null($periodeActiviteHoraireDeb) && !is_string($periodeActiviteHoraireDeb)) { |
||
1009 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($periodeActiviteHoraireDeb, true), gettype($periodeActiviteHoraireDeb)), __LINE__); |
||
1010 | } |
||
1011 | $this->periodeActiviteHoraireDeb = $periodeActiviteHoraireDeb; |
||
1012 | return $this; |
||
1013 | } |
||
1014 | /** |
||
1015 | * Get periodeActiviteHoraireFin value |
||
1016 | * @return string|null |
||
1017 | */ |
||
1018 | public function getPeriodeActiviteHoraireFin() |
||
1019 | { |
||
1020 | return $this->periodeActiviteHoraireFin; |
||
1021 | } |
||
1022 | /** |
||
1023 | * Set periodeActiviteHoraireFin value |
||
1024 | * @param string $periodeActiviteHoraireFin |
||
1025 | * @return \ColissimoPickupPoint\StructType\PointRetrait |
||
1026 | */ |
||
1027 | public function setPeriodeActiviteHoraireFin($periodeActiviteHoraireFin = null) |
||
1028 | { |
||
1029 | // validation for constraint: string |
||
1030 | if (!is_null($periodeActiviteHoraireFin) && !is_string($periodeActiviteHoraireFin)) { |
||
1031 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($periodeActiviteHoraireFin, true), gettype($periodeActiviteHoraireFin)), __LINE__); |
||
1032 | } |
||
1033 | $this->periodeActiviteHoraireFin = $periodeActiviteHoraireFin; |
||
1034 | return $this; |
||
1035 | } |
||
1036 | /** |
||
1037 | * Get poidsMaxi value |
||
1038 | * @return int|null |
||
1039 | */ |
||
1040 | public function getPoidsMaxi() |
||
1041 | { |
||
1042 | return $this->poidsMaxi; |
||
1043 | } |
||
1044 | /** |
||
1045 | * Set poidsMaxi value |
||
1046 | * @param int $poidsMaxi |
||
1047 | * @return \ColissimoPickupPoint\StructType\PointRetrait |
||
1048 | */ |
||
1049 | public function setPoidsMaxi($poidsMaxi = null) |
||
1050 | { |
||
1051 | // validation for constraint: int |
||
1052 | if (!is_null($poidsMaxi) && !(is_int($poidsMaxi) || ctype_digit($poidsMaxi))) { |
||
1053 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide an integer value, %s given', var_export($poidsMaxi, true), gettype($poidsMaxi)), __LINE__); |
||
1054 | } |
||
1055 | $this->poidsMaxi = $poidsMaxi; |
||
1056 | return $this; |
||
1057 | } |
||
1058 | /** |
||
1059 | * Get typeDePoint value |
||
1060 | * @return string|null |
||
1061 | */ |
||
1062 | public function getTypeDePoint() |
||
1063 | { |
||
1064 | return $this->typeDePoint; |
||
1065 | } |
||
1066 | /** |
||
1067 | * Set typeDePoint value |
||
1068 | * @param string $typeDePoint |
||
1069 | * @return \ColissimoPickupPoint\StructType\PointRetrait |
||
1070 | */ |
||
1071 | public function setTypeDePoint($typeDePoint = null) |
||
1079 | } |
||
1080 | } |
||
1081 |