Complex classes like BonsTravaux 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. You can also have a look at the cohesion graph to spot any un-connected, or weakly-connected components.
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 BonsTravaux, and based on these observations, apply Extract Interface, too.
1 | <?php |
||
22 | class BonsTravaux { |
||
23 | |||
24 | /** |
||
25 | * Ad btbtq. |
||
26 | * |
||
27 | * @var string|null |
||
28 | */ |
||
29 | private $adBtbtq; |
||
30 | |||
31 | /** |
||
32 | * Ad bt bureau distributeur. |
||
33 | * |
||
34 | * @var string|null |
||
35 | */ |
||
36 | private $adBtBureauDistributeur; |
||
37 | |||
38 | /** |
||
39 | * Ad bt civilite. |
||
40 | * |
||
41 | * @var string|null |
||
42 | */ |
||
43 | private $adBtCivilite; |
||
44 | |||
45 | /** |
||
46 | * Ad bt code pays. |
||
47 | * |
||
48 | * @var string|null |
||
49 | */ |
||
50 | private $adBtCodePays; |
||
51 | |||
52 | /** |
||
53 | * Ad bt code postal. |
||
54 | * |
||
55 | * @var string|null |
||
56 | */ |
||
57 | private $adBtCodePostal; |
||
58 | |||
59 | /** |
||
60 | * Ad bt complement. |
||
61 | * |
||
62 | * @var string|null |
||
63 | */ |
||
64 | private $adBtComplement; |
||
65 | |||
66 | /** |
||
67 | * Ad bt nom. |
||
68 | * |
||
69 | * @var string|null |
||
70 | */ |
||
71 | private $adBtNom; |
||
72 | |||
73 | /** |
||
74 | * Ad bt nom suite. |
||
75 | * |
||
76 | * @var string|null |
||
77 | */ |
||
78 | private $adBtNomSuite; |
||
79 | |||
80 | /** |
||
81 | * Ad bt nom voie. |
||
82 | * |
||
83 | * @var string|null |
||
84 | */ |
||
85 | private $adBtNomVoie; |
||
86 | |||
87 | /** |
||
88 | * Ad bt num voie. |
||
89 | * |
||
90 | * @var string|null |
||
91 | */ |
||
92 | private $adBtNumVoie; |
||
93 | |||
94 | /** |
||
95 | * Ad fbtq. |
||
96 | * |
||
97 | * @var string|null |
||
98 | */ |
||
99 | private $adFbtq; |
||
100 | |||
101 | /** |
||
102 | * Ad f bureau distributeur. |
||
103 | * |
||
104 | * @var string|null |
||
105 | */ |
||
106 | private $adFBureauDistributeur; |
||
107 | |||
108 | /** |
||
109 | * Ad f civilite. |
||
110 | * |
||
111 | * @var string|null |
||
112 | */ |
||
113 | private $adFCivilite; |
||
114 | |||
115 | /** |
||
116 | * Ad f code pays. |
||
117 | * |
||
118 | * @var string|null |
||
119 | */ |
||
120 | private $adFCodePays; |
||
121 | |||
122 | /** |
||
123 | * Ad f code postal. |
||
124 | * |
||
125 | * @var string|null |
||
126 | */ |
||
127 | private $adFCodePostal; |
||
128 | |||
129 | /** |
||
130 | * Ad f complement. |
||
131 | * |
||
132 | * @var string|null |
||
133 | */ |
||
134 | private $adFComplement; |
||
135 | |||
136 | /** |
||
137 | * Ad f nom. |
||
138 | * |
||
139 | * @var string|null |
||
140 | */ |
||
141 | private $adFNom; |
||
142 | |||
143 | /** |
||
144 | * Ad f nom suite. |
||
145 | * |
||
146 | * @var string|null |
||
147 | */ |
||
148 | private $adFNomSuite; |
||
149 | |||
150 | /** |
||
151 | * Ad f nom suite2. |
||
152 | * |
||
153 | * @var string|null |
||
154 | */ |
||
155 | private $adFNomSuite2; |
||
156 | |||
157 | /** |
||
158 | * Ad f nom suite3. |
||
159 | * |
||
160 | * @var string|null |
||
161 | */ |
||
162 | private $adFNomSuite3; |
||
163 | |||
164 | /** |
||
165 | * Ad f nom voie. |
||
166 | * |
||
167 | * @var string|null |
||
168 | */ |
||
169 | private $adFNomVoie; |
||
170 | |||
171 | /** |
||
172 | * Ad f num voie. |
||
173 | * |
||
174 | * @var string|null |
||
175 | */ |
||
176 | private $adFNumVoie; |
||
177 | |||
178 | /** |
||
179 | * Adresse bt saisie. |
||
180 | * |
||
181 | * @var bool|null |
||
182 | */ |
||
183 | private $adresseBtSaisie; |
||
184 | |||
185 | /** |
||
186 | * Adresse facturation saisie. |
||
187 | * |
||
188 | * @var bool|null |
||
189 | */ |
||
190 | private $adresseFacturationSaisie; |
||
191 | |||
192 | /** |
||
193 | * Code affaire. |
||
194 | * |
||
195 | * @var string|null |
||
196 | */ |
||
197 | private $codeAffaire; |
||
198 | |||
199 | /** |
||
200 | * Code chantier. |
||
201 | * |
||
202 | * @var string|null |
||
203 | */ |
||
204 | private $codeChantier; |
||
205 | |||
206 | /** |
||
207 | * Code client. |
||
208 | * |
||
209 | * @var string|null |
||
210 | */ |
||
211 | private $codeClient; |
||
212 | |||
213 | /** |
||
214 | * Code frequence. |
||
215 | * |
||
216 | * @var string|null |
||
217 | */ |
||
218 | private $codeFrequence; |
||
219 | |||
220 | /** |
||
221 | * Code tache bt. |
||
222 | * |
||
223 | * @var string|null |
||
224 | */ |
||
225 | private $codeTacheBt; |
||
226 | |||
227 | /** |
||
228 | * Code tournee. |
||
229 | * |
||
230 | * @var string|null |
||
231 | */ |
||
232 | private $codeTournee; |
||
233 | |||
234 | /** |
||
235 | * Critere liste1. |
||
236 | * |
||
237 | * @var string|null |
||
238 | */ |
||
239 | private $critereListe1; |
||
240 | |||
241 | /** |
||
242 | * Critere liste2. |
||
243 | * |
||
244 | * @var string|null |
||
245 | */ |
||
246 | private $critereListe2; |
||
247 | |||
248 | /** |
||
249 | * Critere numerique1. |
||
250 | * |
||
251 | * @var float|null |
||
252 | */ |
||
253 | private $critereNumerique1; |
||
254 | |||
255 | /** |
||
256 | * Critere numerique2. |
||
257 | * |
||
258 | * @var float|null |
||
259 | */ |
||
260 | private $critereNumerique2; |
||
261 | |||
262 | /** |
||
263 | * Critere texte1. |
||
264 | * |
||
265 | * @var string|null |
||
266 | */ |
||
267 | private $critereTexte1; |
||
268 | |||
269 | /** |
||
270 | * Critere texte2. |
||
271 | * |
||
272 | * @var string|null |
||
273 | */ |
||
274 | private $critereTexte2; |
||
275 | |||
276 | /** |
||
277 | * Date dernier passage. |
||
278 | * |
||
279 | * @var DateTime|null |
||
280 | */ |
||
281 | private $dateDernierPassage; |
||
282 | |||
283 | /** |
||
284 | * Date fin validite. |
||
285 | * |
||
286 | * @var DateTime|null |
||
287 | */ |
||
288 | private $dateFinValidite; |
||
289 | |||
290 | /** |
||
291 | * Date premier passage. |
||
292 | * |
||
293 | * @var DateTime|null |
||
294 | */ |
||
295 | private $datePremierPassage; |
||
296 | |||
297 | /** |
||
298 | * Date validite. |
||
299 | * |
||
300 | * @var DateTime|null |
||
301 | */ |
||
302 | private $dateValidite; |
||
303 | |||
304 | /** |
||
305 | * Description. |
||
306 | * |
||
307 | * @var string|null |
||
308 | */ |
||
309 | private $description; |
||
310 | |||
311 | /** |
||
312 | * Equipe. |
||
313 | * |
||
314 | * @var string|null |
||
315 | */ |
||
316 | private $equipe; |
||
317 | |||
318 | /** |
||
319 | * Frequence. |
||
320 | * |
||
321 | * @var string|null |
||
322 | */ |
||
323 | private $frequence; |
||
324 | |||
325 | /** |
||
326 | * Frequence suite. |
||
327 | * |
||
328 | * @var string|null |
||
329 | */ |
||
330 | private $frequenceSuite; |
||
331 | |||
332 | /** |
||
333 | * Gestion planning. |
||
334 | * |
||
335 | * @var bool|null |
||
336 | */ |
||
337 | private $gestionPlanning; |
||
338 | |||
339 | /** |
||
340 | * Heure deb. |
||
341 | * |
||
342 | * @var DateTime|null |
||
343 | */ |
||
344 | private $heureDeb; |
||
345 | |||
346 | /** |
||
347 | * Latitude. |
||
348 | * |
||
349 | * @var float|null |
||
350 | */ |
||
351 | private $latitude; |
||
352 | |||
353 | /** |
||
354 | * Longitude. |
||
355 | * |
||
356 | * @var float|null |
||
357 | */ |
||
358 | private $longitude; |
||
359 | |||
360 | /** |
||
361 | * Mention speciale. |
||
362 | * |
||
363 | * @var string|null |
||
364 | */ |
||
365 | private $mentionSpeciale; |
||
366 | |||
367 | /** |
||
368 | * Nb heures. |
||
369 | * |
||
370 | * @var float|null |
||
371 | */ |
||
372 | private $nbHeures; |
||
373 | |||
374 | /** |
||
375 | * Nb jours. |
||
376 | * |
||
377 | * @var float|null |
||
378 | */ |
||
379 | private $nbJours; |
||
380 | |||
381 | /** |
||
382 | * Num bt. |
||
383 | * |
||
384 | * @var int|null |
||
385 | */ |
||
386 | private $numBt; |
||
387 | |||
388 | /** |
||
389 | * Poste rent. |
||
390 | * |
||
391 | * @var string|null |
||
392 | */ |
||
393 | private $posteRent; |
||
394 | |||
395 | /** |
||
396 | * Saisie inter jour. |
||
397 | * |
||
398 | * @var bool|null |
||
399 | */ |
||
400 | private $saisieInterJour; |
||
401 | |||
402 | /** |
||
403 | * Travaille dimanche. |
||
404 | * |
||
405 | * @var bool|null |
||
406 | */ |
||
407 | private $travailleDimanche; |
||
408 | |||
409 | /** |
||
410 | * Travaille jours feries. |
||
411 | * |
||
412 | * @var bool|null |
||
413 | */ |
||
414 | private $travailleJoursFeries; |
||
415 | |||
416 | /** |
||
417 | * Travaille samedi. |
||
418 | * |
||
419 | * @var bool|null |
||
420 | */ |
||
421 | private $travailleSamedi; |
||
422 | |||
423 | /** |
||
424 | * Type frequence. |
||
425 | * |
||
426 | * @var string|null |
||
427 | */ |
||
428 | private $typeFrequence; |
||
429 | |||
430 | /** |
||
431 | * Un bon par mois. |
||
432 | * |
||
433 | * @var bool|null |
||
434 | */ |
||
435 | private $unBonParMois; |
||
436 | |||
437 | |||
438 | /** |
||
439 | * Constructor. |
||
440 | */ |
||
441 | public function __construct() { |
||
444 | |||
445 | /** |
||
446 | * Get the ad btbtq. |
||
447 | * |
||
448 | * @return string|null Returns the ad btbtq. |
||
449 | */ |
||
450 | public function getAdBtbtq(): ?string{ |
||
453 | |||
454 | /** |
||
455 | * Get the ad bt bureau distributeur. |
||
456 | * |
||
457 | * @return string|null Returns the ad bt bureau distributeur. |
||
458 | */ |
||
459 | public function getAdBtBureauDistributeur(): ?string{ |
||
462 | |||
463 | /** |
||
464 | * Get the ad bt civilite. |
||
465 | * |
||
466 | * @return string|null Returns the ad bt civilite. |
||
467 | */ |
||
468 | public function getAdBtCivilite(): ?string{ |
||
471 | |||
472 | /** |
||
473 | * Get the ad bt code pays. |
||
474 | * |
||
475 | * @return string|null Returns the ad bt code pays. |
||
476 | */ |
||
477 | public function getAdBtCodePays(): ?string{ |
||
480 | |||
481 | /** |
||
482 | * Get the ad bt code postal. |
||
483 | * |
||
484 | * @return string|null Returns the ad bt code postal. |
||
485 | */ |
||
486 | public function getAdBtCodePostal(): ?string{ |
||
489 | |||
490 | /** |
||
491 | * Get the ad bt complement. |
||
492 | * |
||
493 | * @return string|null Returns the ad bt complement. |
||
494 | */ |
||
495 | public function getAdBtComplement(): ?string{ |
||
498 | |||
499 | /** |
||
500 | * Get the ad bt nom. |
||
501 | * |
||
502 | * @return string|null Returns the ad bt nom. |
||
503 | */ |
||
504 | public function getAdBtNom(): ?string{ |
||
507 | |||
508 | /** |
||
509 | * Get the ad bt nom suite. |
||
510 | * |
||
511 | * @return string|null Returns the ad bt nom suite. |
||
512 | */ |
||
513 | public function getAdBtNomSuite(): ?string{ |
||
516 | |||
517 | /** |
||
518 | * Get the ad bt nom voie. |
||
519 | * |
||
520 | * @return string|null Returns the ad bt nom voie. |
||
521 | */ |
||
522 | public function getAdBtNomVoie(): ?string{ |
||
525 | |||
526 | /** |
||
527 | * Get the ad bt num voie. |
||
528 | * |
||
529 | * @return string|null Returns the ad bt num voie. |
||
530 | */ |
||
531 | public function getAdBtNumVoie(): ?string{ |
||
534 | |||
535 | /** |
||
536 | * Get the ad fbtq. |
||
537 | * |
||
538 | * @return string|null Returns the ad fbtq. |
||
539 | */ |
||
540 | public function getAdFbtq(): ?string{ |
||
543 | |||
544 | /** |
||
545 | * Get the ad f bureau distributeur. |
||
546 | * |
||
547 | * @return string|null Returns the ad f bureau distributeur. |
||
548 | */ |
||
549 | public function getAdFBureauDistributeur(): ?string{ |
||
552 | |||
553 | /** |
||
554 | * Get the ad f civilite. |
||
555 | * |
||
556 | * @return string|null Returns the ad f civilite. |
||
557 | */ |
||
558 | public function getAdFCivilite(): ?string{ |
||
561 | |||
562 | /** |
||
563 | * Get the ad f code pays. |
||
564 | * |
||
565 | * @return string|null Returns the ad f code pays. |
||
566 | */ |
||
567 | public function getAdFCodePays(): ?string{ |
||
570 | |||
571 | /** |
||
572 | * Get the ad f code postal. |
||
573 | * |
||
574 | * @return string|null Returns the ad f code postal. |
||
575 | */ |
||
576 | public function getAdFCodePostal(): ?string{ |
||
579 | |||
580 | /** |
||
581 | * Get the ad f complement. |
||
582 | * |
||
583 | * @return string|null Returns the ad f complement. |
||
584 | */ |
||
585 | public function getAdFComplement(): ?string{ |
||
588 | |||
589 | /** |
||
590 | * Get the ad f nom. |
||
591 | * |
||
592 | * @return string|null Returns the ad f nom. |
||
593 | */ |
||
594 | public function getAdFNom(): ?string{ |
||
597 | |||
598 | /** |
||
599 | * Get the ad f nom suite. |
||
600 | * |
||
601 | * @return string|null Returns the ad f nom suite. |
||
602 | */ |
||
603 | public function getAdFNomSuite(): ?string{ |
||
606 | |||
607 | /** |
||
608 | * Get the ad f nom suite2. |
||
609 | * |
||
610 | * @return string|null Returns the ad f nom suite2. |
||
611 | */ |
||
612 | public function getAdFNomSuite2(): ?string{ |
||
615 | |||
616 | /** |
||
617 | * Get the ad f nom suite3. |
||
618 | * |
||
619 | * @return string|null Returns the ad f nom suite3. |
||
620 | */ |
||
621 | public function getAdFNomSuite3(): ?string{ |
||
624 | |||
625 | /** |
||
626 | * Get the ad f nom voie. |
||
627 | * |
||
628 | * @return string|null Returns the ad f nom voie. |
||
629 | */ |
||
630 | public function getAdFNomVoie(): ?string{ |
||
633 | |||
634 | /** |
||
635 | * Get the ad f num voie. |
||
636 | * |
||
637 | * @return string|null Returns the ad f num voie. |
||
638 | */ |
||
639 | public function getAdFNumVoie(): ?string{ |
||
642 | |||
643 | /** |
||
644 | * Get the adresse bt saisie. |
||
645 | * |
||
646 | * @return bool|null Returns the adresse bt saisie. |
||
647 | */ |
||
648 | public function getAdresseBtSaisie(): ?bool{ |
||
651 | |||
652 | /** |
||
653 | * Get the adresse facturation saisie. |
||
654 | * |
||
655 | * @return bool|null Returns the adresse facturation saisie. |
||
656 | */ |
||
657 | public function getAdresseFacturationSaisie(): ?bool{ |
||
660 | |||
661 | /** |
||
662 | * Get the code affaire. |
||
663 | * |
||
664 | * @return string|null Returns the code affaire. |
||
665 | */ |
||
666 | public function getCodeAffaire(): ?string{ |
||
669 | |||
670 | /** |
||
671 | * Get the code chantier. |
||
672 | * |
||
673 | * @return string|null Returns the code chantier. |
||
674 | */ |
||
675 | public function getCodeChantier(): ?string{ |
||
678 | |||
679 | /** |
||
680 | * Get the code client. |
||
681 | * |
||
682 | * @return string|null Returns the code client. |
||
683 | */ |
||
684 | public function getCodeClient(): ?string{ |
||
687 | |||
688 | /** |
||
689 | * Get the code frequence. |
||
690 | * |
||
691 | * @return string|null Returns the code frequence. |
||
692 | */ |
||
693 | public function getCodeFrequence(): ?string{ |
||
696 | |||
697 | /** |
||
698 | * Get the code tache bt. |
||
699 | * |
||
700 | * @return string|null Returns the code tache bt. |
||
701 | */ |
||
702 | public function getCodeTacheBt(): ?string{ |
||
705 | |||
706 | /** |
||
707 | * Get the code tournee. |
||
708 | * |
||
709 | * @return string|null Returns the code tournee. |
||
710 | */ |
||
711 | public function getCodeTournee(): ?string{ |
||
714 | |||
715 | /** |
||
716 | * Get the critere liste1. |
||
717 | * |
||
718 | * @return string|null Returns the critere liste1. |
||
719 | */ |
||
720 | public function getCritereListe1(): ?string{ |
||
723 | |||
724 | /** |
||
725 | * Get the critere liste2. |
||
726 | * |
||
727 | * @return string|null Returns the critere liste2. |
||
728 | */ |
||
729 | public function getCritereListe2(): ?string{ |
||
732 | |||
733 | /** |
||
734 | * Get the critere numerique1. |
||
735 | * |
||
736 | * @return float|null Returns the critere numerique1. |
||
737 | */ |
||
738 | public function getCritereNumerique1(): ?float{ |
||
741 | |||
742 | /** |
||
743 | * Get the critere numerique2. |
||
744 | * |
||
745 | * @return float|null Returns the critere numerique2. |
||
746 | */ |
||
747 | public function getCritereNumerique2(): ?float{ |
||
750 | |||
751 | /** |
||
752 | * Get the critere texte1. |
||
753 | * |
||
754 | * @return string|null Returns the critere texte1. |
||
755 | */ |
||
756 | public function getCritereTexte1(): ?string{ |
||
759 | |||
760 | /** |
||
761 | * Get the critere texte2. |
||
762 | * |
||
763 | * @return string|null Returns the critere texte2. |
||
764 | */ |
||
765 | public function getCritereTexte2(): ?string{ |
||
768 | |||
769 | /** |
||
770 | * Get the date dernier passage. |
||
771 | * |
||
772 | * @return DateTime|null Returns the date dernier passage. |
||
773 | */ |
||
774 | public function getDateDernierPassage(): ?DateTime{ |
||
777 | |||
778 | /** |
||
779 | * Get the date fin validite. |
||
780 | * |
||
781 | * @return DateTime|null Returns the date fin validite. |
||
782 | */ |
||
783 | public function getDateFinValidite(): ?DateTime{ |
||
786 | |||
787 | /** |
||
788 | * Get the date premier passage. |
||
789 | * |
||
790 | * @return DateTime|null Returns the date premier passage. |
||
791 | */ |
||
792 | public function getDatePremierPassage(): ?DateTime{ |
||
795 | |||
796 | /** |
||
797 | * Get the date validite. |
||
798 | * |
||
799 | * @return DateTime|null Returns the date validite. |
||
800 | */ |
||
801 | public function getDateValidite(): ?DateTime{ |
||
804 | |||
805 | /** |
||
806 | * Get the description. |
||
807 | * |
||
808 | * @return string|null Returns the description. |
||
809 | */ |
||
810 | public function getDescription(): ?string{ |
||
813 | |||
814 | /** |
||
815 | * Get the equipe. |
||
816 | * |
||
817 | * @return string|null Returns the equipe. |
||
818 | */ |
||
819 | public function getEquipe(): ?string{ |
||
822 | |||
823 | /** |
||
824 | * Get the frequence. |
||
825 | * |
||
826 | * @return string|null Returns the frequence. |
||
827 | */ |
||
828 | public function getFrequence(): ?string{ |
||
831 | |||
832 | /** |
||
833 | * Get the frequence suite. |
||
834 | * |
||
835 | * @return string|null Returns the frequence suite. |
||
836 | */ |
||
837 | public function getFrequenceSuite(): ?string{ |
||
840 | |||
841 | /** |
||
842 | * Get the gestion planning. |
||
843 | * |
||
844 | * @return bool|null Returns the gestion planning. |
||
845 | */ |
||
846 | public function getGestionPlanning(): ?bool{ |
||
849 | |||
850 | /** |
||
851 | * Get the heure deb. |
||
852 | * |
||
853 | * @return DateTime|null Returns the heure deb. |
||
854 | */ |
||
855 | public function getHeureDeb(): ?DateTime{ |
||
858 | |||
859 | /** |
||
860 | * Get the latitude. |
||
861 | * |
||
862 | * @return float|null Returns the latitude. |
||
863 | */ |
||
864 | public function getLatitude(): ?float{ |
||
867 | |||
868 | /** |
||
869 | * Get the longitude. |
||
870 | * |
||
871 | * @return float|null Returns the longitude. |
||
872 | */ |
||
873 | public function getLongitude(): ?float{ |
||
876 | |||
877 | /** |
||
878 | * Get the mention speciale. |
||
879 | * |
||
880 | * @return string|null Returns the mention speciale. |
||
881 | */ |
||
882 | public function getMentionSpeciale(): ?string{ |
||
885 | |||
886 | /** |
||
887 | * Get the nb heures. |
||
888 | * |
||
889 | * @return float|null Returns the nb heures. |
||
890 | */ |
||
891 | public function getNbHeures(): ?float{ |
||
894 | |||
895 | /** |
||
896 | * Get the nb jours. |
||
897 | * |
||
898 | * @return float|null Returns the nb jours. |
||
899 | */ |
||
900 | public function getNbJours(): ?float{ |
||
903 | |||
904 | /** |
||
905 | * Get the num bt. |
||
906 | * |
||
907 | * @return int|null Returns the num bt. |
||
908 | */ |
||
909 | public function getNumBt(): ?int{ |
||
912 | |||
913 | /** |
||
914 | * Get the poste rent. |
||
915 | * |
||
916 | * @return string|null Returns the poste rent. |
||
917 | */ |
||
918 | public function getPosteRent(): ?string{ |
||
921 | |||
922 | /** |
||
923 | * Get the saisie inter jour. |
||
924 | * |
||
925 | * @return bool|null Returns the saisie inter jour. |
||
926 | */ |
||
927 | public function getSaisieInterJour(): ?bool{ |
||
930 | |||
931 | /** |
||
932 | * Get the travaille dimanche. |
||
933 | * |
||
934 | * @return bool|null Returns the travaille dimanche. |
||
935 | */ |
||
936 | public function getTravailleDimanche(): ?bool{ |
||
939 | |||
940 | /** |
||
941 | * Get the travaille jours feries. |
||
942 | * |
||
943 | * @return bool|null Returns the travaille jours feries. |
||
944 | */ |
||
945 | public function getTravailleJoursFeries(): ?bool{ |
||
948 | |||
949 | /** |
||
950 | * Get the travaille samedi. |
||
951 | * |
||
952 | * @return bool|null Returns the travaille samedi. |
||
953 | */ |
||
954 | public function getTravailleSamedi(): ?bool{ |
||
957 | |||
958 | /** |
||
959 | * Get the type frequence. |
||
960 | * |
||
961 | * @return string|null Returns the type frequence. |
||
962 | */ |
||
963 | public function getTypeFrequence(): ?string{ |
||
966 | |||
967 | /** |
||
968 | * Get the un bon par mois. |
||
969 | * |
||
970 | * @return bool|null Returns the un bon par mois. |
||
971 | */ |
||
972 | public function getUnBonParMois(): ?bool{ |
||
975 | |||
976 | /** |
||
977 | * Set the ad btbtq. |
||
978 | * |
||
979 | * @param string|null $adBtbtq The ad btbtq. |
||
980 | * @return BonsTravaux Returns this Bons travaux. |
||
981 | */ |
||
982 | public function setAdBtbtq(?string $adBtbtq): BonsTravaux { |
||
986 | |||
987 | /** |
||
988 | * Set the ad bt bureau distributeur. |
||
989 | * |
||
990 | * @param string|null $adBtBureauDistributeur The ad bt bureau distributeur. |
||
991 | * @return BonsTravaux Returns this Bons travaux. |
||
992 | */ |
||
993 | public function setAdBtBureauDistributeur(?string $adBtBureauDistributeur): BonsTravaux { |
||
997 | |||
998 | /** |
||
999 | * Set the ad bt civilite. |
||
1000 | * |
||
1001 | * @param string|null $adBtCivilite The ad bt civilite. |
||
1002 | * @return BonsTravaux Returns this Bons travaux. |
||
1003 | */ |
||
1004 | public function setAdBtCivilite(?string $adBtCivilite): BonsTravaux { |
||
1008 | |||
1009 | /** |
||
1010 | * Set the ad bt code pays. |
||
1011 | * |
||
1012 | * @param string|null $adBtCodePays The ad bt code pays. |
||
1013 | * @return BonsTravaux Returns this Bons travaux. |
||
1014 | */ |
||
1015 | public function setAdBtCodePays(?string $adBtCodePays): BonsTravaux { |
||
1019 | |||
1020 | /** |
||
1021 | * Set the ad bt code postal. |
||
1022 | * |
||
1023 | * @param string|null $adBtCodePostal The ad bt code postal. |
||
1024 | * @return BonsTravaux Returns this Bons travaux. |
||
1025 | */ |
||
1026 | public function setAdBtCodePostal(?string $adBtCodePostal): BonsTravaux { |
||
1030 | |||
1031 | /** |
||
1032 | * Set the ad bt complement. |
||
1033 | * |
||
1034 | * @param string|null $adBtComplement The ad bt complement. |
||
1035 | * @return BonsTravaux Returns this Bons travaux. |
||
1036 | */ |
||
1037 | public function setAdBtComplement(?string $adBtComplement): BonsTravaux { |
||
1041 | |||
1042 | /** |
||
1043 | * Set the ad bt nom. |
||
1044 | * |
||
1045 | * @param string|null $adBtNom The ad bt nom. |
||
1046 | * @return BonsTravaux Returns this Bons travaux. |
||
1047 | */ |
||
1048 | public function setAdBtNom(?string $adBtNom): BonsTravaux { |
||
1052 | |||
1053 | /** |
||
1054 | * Set the ad bt nom suite. |
||
1055 | * |
||
1056 | * @param string|null $adBtNomSuite The ad bt nom suite. |
||
1057 | * @return BonsTravaux Returns this Bons travaux. |
||
1058 | */ |
||
1059 | public function setAdBtNomSuite(?string $adBtNomSuite): BonsTravaux { |
||
1063 | |||
1064 | /** |
||
1065 | * Set the ad bt nom voie. |
||
1066 | * |
||
1067 | * @param string|null $adBtNomVoie The ad bt nom voie. |
||
1068 | * @return BonsTravaux Returns this Bons travaux. |
||
1069 | */ |
||
1070 | public function setAdBtNomVoie(?string $adBtNomVoie): BonsTravaux { |
||
1074 | |||
1075 | /** |
||
1076 | * Set the ad bt num voie. |
||
1077 | * |
||
1078 | * @param string|null $adBtNumVoie The ad bt num voie. |
||
1079 | * @return BonsTravaux Returns this Bons travaux. |
||
1080 | */ |
||
1081 | public function setAdBtNumVoie(?string $adBtNumVoie): BonsTravaux { |
||
1085 | |||
1086 | /** |
||
1087 | * Set the ad fbtq. |
||
1088 | * |
||
1089 | * @param string|null $adFbtq The ad fbtq. |
||
1090 | * @return BonsTravaux Returns this Bons travaux. |
||
1091 | */ |
||
1092 | public function setAdFbtq(?string $adFbtq): BonsTravaux { |
||
1096 | |||
1097 | /** |
||
1098 | * Set the ad f bureau distributeur. |
||
1099 | * |
||
1100 | * @param string|null $adFBureauDistributeur The ad f bureau distributeur. |
||
1101 | * @return BonsTravaux Returns this Bons travaux. |
||
1102 | */ |
||
1103 | public function setAdFBureauDistributeur(?string $adFBureauDistributeur): BonsTravaux { |
||
1107 | |||
1108 | /** |
||
1109 | * Set the ad f civilite. |
||
1110 | * |
||
1111 | * @param string|null $adFCivilite The ad f civilite. |
||
1112 | * @return BonsTravaux Returns this Bons travaux. |
||
1113 | */ |
||
1114 | public function setAdFCivilite(?string $adFCivilite): BonsTravaux { |
||
1118 | |||
1119 | /** |
||
1120 | * Set the ad f code pays. |
||
1121 | * |
||
1122 | * @param string|null $adFCodePays The ad f code pays. |
||
1123 | * @return BonsTravaux Returns this Bons travaux. |
||
1124 | */ |
||
1125 | public function setAdFCodePays(?string $adFCodePays): BonsTravaux { |
||
1129 | |||
1130 | /** |
||
1131 | * Set the ad f code postal. |
||
1132 | * |
||
1133 | * @param string|null $adFCodePostal The ad f code postal. |
||
1134 | * @return BonsTravaux Returns this Bons travaux. |
||
1135 | */ |
||
1136 | public function setAdFCodePostal(?string $adFCodePostal): BonsTravaux { |
||
1140 | |||
1141 | /** |
||
1142 | * Set the ad f complement. |
||
1143 | * |
||
1144 | * @param string|null $adFComplement The ad f complement. |
||
1145 | * @return BonsTravaux Returns this Bons travaux. |
||
1146 | */ |
||
1147 | public function setAdFComplement(?string $adFComplement): BonsTravaux { |
||
1151 | |||
1152 | /** |
||
1153 | * Set the ad f nom. |
||
1154 | * |
||
1155 | * @param string|null $adFNom The ad f nom. |
||
1156 | * @return BonsTravaux Returns this Bons travaux. |
||
1157 | */ |
||
1158 | public function setAdFNom(?string $adFNom): BonsTravaux { |
||
1162 | |||
1163 | /** |
||
1164 | * Set the ad f nom suite. |
||
1165 | * |
||
1166 | * @param string|null $adFNomSuite The ad f nom suite. |
||
1167 | * @return BonsTravaux Returns this Bons travaux. |
||
1168 | */ |
||
1169 | public function setAdFNomSuite(?string $adFNomSuite): BonsTravaux { |
||
1173 | |||
1174 | /** |
||
1175 | * Set the ad f nom suite2. |
||
1176 | * |
||
1177 | * @param string|null $adFNomSuite2 The ad f nom suite2. |
||
1178 | * @return BonsTravaux Returns this Bons travaux. |
||
1179 | */ |
||
1180 | public function setAdFNomSuite2(?string $adFNomSuite2): BonsTravaux { |
||
1184 | |||
1185 | /** |
||
1186 | * Set the ad f nom suite3. |
||
1187 | * |
||
1188 | * @param string|null $adFNomSuite3 The ad f nom suite3. |
||
1189 | * @return BonsTravaux Returns this Bons travaux. |
||
1190 | */ |
||
1191 | public function setAdFNomSuite3(?string $adFNomSuite3): BonsTravaux { |
||
1195 | |||
1196 | /** |
||
1197 | * Set the ad f nom voie. |
||
1198 | * |
||
1199 | * @param string|null $adFNomVoie The ad f nom voie. |
||
1200 | * @return BonsTravaux Returns this Bons travaux. |
||
1201 | */ |
||
1202 | public function setAdFNomVoie(?string $adFNomVoie): BonsTravaux { |
||
1206 | |||
1207 | /** |
||
1208 | * Set the ad f num voie. |
||
1209 | * |
||
1210 | * @param string|null $adFNumVoie The ad f num voie. |
||
1211 | * @return BonsTravaux Returns this Bons travaux. |
||
1212 | */ |
||
1213 | public function setAdFNumVoie(?string $adFNumVoie): BonsTravaux { |
||
1217 | |||
1218 | /** |
||
1219 | * Set the adresse bt saisie. |
||
1220 | * |
||
1221 | * @param bool|null $adresseBtSaisie The adresse bt saisie. |
||
1222 | * @return BonsTravaux Returns this Bons travaux. |
||
1223 | */ |
||
1224 | public function setAdresseBtSaisie(?bool $adresseBtSaisie): BonsTravaux { |
||
1228 | |||
1229 | /** |
||
1230 | * Set the adresse facturation saisie. |
||
1231 | * |
||
1232 | * @param bool|null $adresseFacturationSaisie The adresse facturation saisie. |
||
1233 | * @return BonsTravaux Returns this Bons travaux. |
||
1234 | */ |
||
1235 | public function setAdresseFacturationSaisie(?bool $adresseFacturationSaisie): BonsTravaux { |
||
1239 | |||
1240 | /** |
||
1241 | * Set the code affaire. |
||
1242 | * |
||
1243 | * @param string|null $codeAffaire The code affaire. |
||
1244 | * @return BonsTravaux Returns this Bons travaux. |
||
1245 | */ |
||
1246 | public function setCodeAffaire(?string $codeAffaire): BonsTravaux { |
||
1250 | |||
1251 | /** |
||
1252 | * Set the code chantier. |
||
1253 | * |
||
1254 | * @param string|null $codeChantier The code chantier. |
||
1255 | * @return BonsTravaux Returns this Bons travaux. |
||
1256 | */ |
||
1257 | public function setCodeChantier(?string $codeChantier): BonsTravaux { |
||
1261 | |||
1262 | /** |
||
1263 | * Set the code client. |
||
1264 | * |
||
1265 | * @param string|null $codeClient The code client. |
||
1266 | * @return BonsTravaux Returns this Bons travaux. |
||
1267 | */ |
||
1268 | public function setCodeClient(?string $codeClient): BonsTravaux { |
||
1272 | |||
1273 | /** |
||
1274 | * Set the code frequence. |
||
1275 | * |
||
1276 | * @param string|null $codeFrequence The code frequence. |
||
1277 | * @return BonsTravaux Returns this Bons travaux. |
||
1278 | */ |
||
1279 | public function setCodeFrequence(?string $codeFrequence): BonsTravaux { |
||
1283 | |||
1284 | /** |
||
1285 | * Set the code tache bt. |
||
1286 | * |
||
1287 | * @param string|null $codeTacheBt The code tache bt. |
||
1288 | * @return BonsTravaux Returns this Bons travaux. |
||
1289 | */ |
||
1290 | public function setCodeTacheBt(?string $codeTacheBt): BonsTravaux { |
||
1294 | |||
1295 | /** |
||
1296 | * Set the code tournee. |
||
1297 | * |
||
1298 | * @param string|null $codeTournee The code tournee. |
||
1299 | * @return BonsTravaux Returns this Bons travaux. |
||
1300 | */ |
||
1301 | public function setCodeTournee(?string $codeTournee): BonsTravaux { |
||
1305 | |||
1306 | /** |
||
1307 | * Set the critere liste1. |
||
1308 | * |
||
1309 | * @param string|null $critereListe1 The critere liste1. |
||
1310 | * @return BonsTravaux Returns this Bons travaux. |
||
1311 | */ |
||
1312 | public function setCritereListe1(?string $critereListe1): BonsTravaux { |
||
1316 | |||
1317 | /** |
||
1318 | * Set the critere liste2. |
||
1319 | * |
||
1320 | * @param string|null $critereListe2 The critere liste2. |
||
1321 | * @return BonsTravaux Returns this Bons travaux. |
||
1322 | */ |
||
1323 | public function setCritereListe2(?string $critereListe2): BonsTravaux { |
||
1327 | |||
1328 | /** |
||
1329 | * Set the critere numerique1. |
||
1330 | * |
||
1331 | * @param float|null $critereNumerique1 The critere numerique1. |
||
1332 | * @return BonsTravaux Returns this Bons travaux. |
||
1333 | */ |
||
1334 | public function setCritereNumerique1(?float $critereNumerique1): BonsTravaux { |
||
1338 | |||
1339 | /** |
||
1340 | * Set the critere numerique2. |
||
1341 | * |
||
1342 | * @param float|null $critereNumerique2 The critere numerique2. |
||
1343 | * @return BonsTravaux Returns this Bons travaux. |
||
1344 | */ |
||
1345 | public function setCritereNumerique2(?float $critereNumerique2): BonsTravaux { |
||
1349 | |||
1350 | /** |
||
1351 | * Set the critere texte1. |
||
1352 | * |
||
1353 | * @param string|null $critereTexte1 The critere texte1. |
||
1354 | * @return BonsTravaux Returns this Bons travaux. |
||
1355 | */ |
||
1356 | public function setCritereTexte1(?string $critereTexte1): BonsTravaux { |
||
1360 | |||
1361 | /** |
||
1362 | * Set the critere texte2. |
||
1363 | * |
||
1364 | * @param string|null $critereTexte2 The critere texte2. |
||
1365 | * @return BonsTravaux Returns this Bons travaux. |
||
1366 | */ |
||
1367 | public function setCritereTexte2(?string $critereTexte2): BonsTravaux { |
||
1371 | |||
1372 | /** |
||
1373 | * Set the date dernier passage. |
||
1374 | * |
||
1375 | * @param DateTime|null $dateDernierPassage The date dernier passage. |
||
1376 | * @return BonsTravaux Returns this Bons travaux. |
||
1377 | */ |
||
1378 | public function setDateDernierPassage(?DateTime $dateDernierPassage): BonsTravaux { |
||
1382 | |||
1383 | /** |
||
1384 | * Set the date fin validite. |
||
1385 | * |
||
1386 | * @param DateTime|null $dateFinValidite The date fin validite. |
||
1387 | * @return BonsTravaux Returns this Bons travaux. |
||
1388 | */ |
||
1389 | public function setDateFinValidite(?DateTime $dateFinValidite): BonsTravaux { |
||
1393 | |||
1394 | /** |
||
1395 | * Set the date premier passage. |
||
1396 | * |
||
1397 | * @param DateTime|null $datePremierPassage The date premier passage. |
||
1398 | * @return BonsTravaux Returns this Bons travaux. |
||
1399 | */ |
||
1400 | public function setDatePremierPassage(?DateTime $datePremierPassage): BonsTravaux { |
||
1404 | |||
1405 | /** |
||
1406 | * Set the date validite. |
||
1407 | * |
||
1408 | * @param DateTime|null $dateValidite The date validite. |
||
1409 | * @return BonsTravaux Returns this Bons travaux. |
||
1410 | */ |
||
1411 | public function setDateValidite(?DateTime $dateValidite): BonsTravaux { |
||
1415 | |||
1416 | /** |
||
1417 | * Set the description. |
||
1418 | * |
||
1419 | * @param string|null $description The description. |
||
1420 | * @return BonsTravaux Returns this Bons travaux. |
||
1421 | */ |
||
1422 | public function setDescription(?string $description): BonsTravaux { |
||
1426 | |||
1427 | /** |
||
1428 | * Set the equipe. |
||
1429 | * |
||
1430 | * @param string|null $equipe The equipe. |
||
1431 | * @return BonsTravaux Returns this Bons travaux. |
||
1432 | */ |
||
1433 | public function setEquipe(?string $equipe): BonsTravaux { |
||
1437 | |||
1438 | /** |
||
1439 | * Set the frequence. |
||
1440 | * |
||
1441 | * @param string|null $frequence The frequence. |
||
1442 | * @return BonsTravaux Returns this Bons travaux. |
||
1443 | */ |
||
1444 | public function setFrequence(?string $frequence): BonsTravaux { |
||
1448 | |||
1449 | /** |
||
1450 | * Set the frequence suite. |
||
1451 | * |
||
1452 | * @param string|null $frequenceSuite The frequence suite. |
||
1453 | * @return BonsTravaux Returns this Bons travaux. |
||
1454 | */ |
||
1455 | public function setFrequenceSuite(?string $frequenceSuite): BonsTravaux { |
||
1459 | |||
1460 | /** |
||
1461 | * Set the gestion planning. |
||
1462 | * |
||
1463 | * @param bool|null $gestionPlanning The gestion planning. |
||
1464 | * @return BonsTravaux Returns this Bons travaux. |
||
1465 | */ |
||
1466 | public function setGestionPlanning(?bool $gestionPlanning): BonsTravaux { |
||
1470 | |||
1471 | /** |
||
1472 | * Set the heure deb. |
||
1473 | * |
||
1474 | * @param DateTime|null $heureDeb The heure deb. |
||
1475 | * @return BonsTravaux Returns this Bons travaux. |
||
1476 | */ |
||
1477 | public function setHeureDeb(?DateTime $heureDeb): BonsTravaux { |
||
1481 | |||
1482 | /** |
||
1483 | * Set the latitude. |
||
1484 | * |
||
1485 | * @param float|null $latitude The latitude. |
||
1486 | * @return BonsTravaux Returns this Bons travaux. |
||
1487 | */ |
||
1488 | public function setLatitude(?float $latitude): BonsTravaux { |
||
1492 | |||
1493 | /** |
||
1494 | * Set the longitude. |
||
1495 | * |
||
1496 | * @param float|null $longitude The longitude. |
||
1497 | * @return BonsTravaux Returns this Bons travaux. |
||
1498 | */ |
||
1499 | public function setLongitude(?float $longitude): BonsTravaux { |
||
1503 | |||
1504 | /** |
||
1505 | * Set the mention speciale. |
||
1506 | * |
||
1507 | * @param string|null $mentionSpeciale The mention speciale. |
||
1508 | * @return BonsTravaux Returns this Bons travaux. |
||
1509 | */ |
||
1510 | public function setMentionSpeciale(?string $mentionSpeciale): BonsTravaux { |
||
1514 | |||
1515 | /** |
||
1516 | * Set the nb heures. |
||
1517 | * |
||
1518 | * @param float|null $nbHeures The nb heures. |
||
1519 | * @return BonsTravaux Returns this Bons travaux. |
||
1520 | */ |
||
1521 | public function setNbHeures(?float $nbHeures): BonsTravaux { |
||
1525 | |||
1526 | /** |
||
1527 | * Set the nb jours. |
||
1528 | * |
||
1529 | * @param float|null $nbJours The nb jours. |
||
1530 | * @return BonsTravaux Returns this Bons travaux. |
||
1531 | */ |
||
1532 | public function setNbJours(?float $nbJours): BonsTravaux { |
||
1536 | |||
1537 | /** |
||
1538 | * Set the num bt. |
||
1539 | * |
||
1540 | * @param int|null $numBt The num bt. |
||
1541 | * @return BonsTravaux Returns this Bons travaux. |
||
1542 | */ |
||
1543 | public function setNumBt(?int $numBt): BonsTravaux { |
||
1547 | |||
1548 | /** |
||
1549 | * Set the poste rent. |
||
1550 | * |
||
1551 | * @param string|null $posteRent The poste rent. |
||
1552 | * @return BonsTravaux Returns this Bons travaux. |
||
1553 | */ |
||
1554 | public function setPosteRent(?string $posteRent): BonsTravaux { |
||
1558 | |||
1559 | /** |
||
1560 | * Set the saisie inter jour. |
||
1561 | * |
||
1562 | * @param bool|null $saisieInterJour The saisie inter jour. |
||
1563 | * @return BonsTravaux Returns this Bons travaux. |
||
1564 | */ |
||
1565 | public function setSaisieInterJour(?bool $saisieInterJour): BonsTravaux { |
||
1569 | |||
1570 | /** |
||
1571 | * Set the travaille dimanche. |
||
1572 | * |
||
1573 | * @param bool|null $travailleDimanche The travaille dimanche. |
||
1574 | * @return BonsTravaux Returns this Bons travaux. |
||
1575 | */ |
||
1576 | public function setTravailleDimanche(?bool $travailleDimanche): BonsTravaux { |
||
1580 | |||
1581 | /** |
||
1582 | * Set the travaille jours feries. |
||
1583 | * |
||
1584 | * @param bool|null $travailleJoursFeries The travaille jours feries. |
||
1585 | * @return BonsTravaux Returns this Bons travaux. |
||
1586 | */ |
||
1587 | public function setTravailleJoursFeries(?bool $travailleJoursFeries): BonsTravaux { |
||
1591 | |||
1592 | /** |
||
1593 | * Set the travaille samedi. |
||
1594 | * |
||
1595 | * @param bool|null $travailleSamedi The travaille samedi. |
||
1596 | * @return BonsTravaux Returns this Bons travaux. |
||
1597 | */ |
||
1598 | public function setTravailleSamedi(?bool $travailleSamedi): BonsTravaux { |
||
1602 | |||
1603 | /** |
||
1604 | * Set the type frequence. |
||
1605 | * |
||
1606 | * @param string|null $typeFrequence The type frequence. |
||
1607 | * @return BonsTravaux Returns this Bons travaux. |
||
1608 | */ |
||
1609 | public function setTypeFrequence(?string $typeFrequence): BonsTravaux { |
||
1613 | |||
1614 | /** |
||
1615 | * Set the un bon par mois. |
||
1616 | * |
||
1617 | * @param bool|null $unBonParMois The un bon par mois. |
||
1618 | * @return BonsTravaux Returns this Bons travaux. |
||
1619 | */ |
||
1620 | public function setUnBonParMois(?bool $unBonParMois): BonsTravaux { |
||
1624 | } |
||
1625 |