Complex classes like Clients 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 Clients, and based on these observations, apply Extract Interface, too.
1 | <?php |
||
22 | class Clients { |
||
23 | |||
24 | /** |
||
25 | * Actif. |
||
26 | * |
||
27 | * @var bool|null |
||
28 | */ |
||
29 | private $actif; |
||
30 | |||
31 | /** |
||
32 | * Bloque. |
||
33 | * |
||
34 | * @var bool|null |
||
35 | */ |
||
36 | private $bloque; |
||
37 | |||
38 | /** |
||
39 | * Cle alpha. |
||
40 | * |
||
41 | * @var string|null |
||
42 | */ |
||
43 | private $cleAlpha; |
||
44 | |||
45 | /** |
||
46 | * Code analytique. |
||
47 | * |
||
48 | * @var string|null |
||
49 | */ |
||
50 | private $codeAnalytique; |
||
51 | |||
52 | /** |
||
53 | * Code categorie client. |
||
54 | * |
||
55 | * @var string|null |
||
56 | */ |
||
57 | private $codeCategorieClient; |
||
58 | |||
59 | /** |
||
60 | * Code client fact. |
||
61 | * |
||
62 | * @var string|null |
||
63 | */ |
||
64 | private $codeClientFact; |
||
65 | |||
66 | /** |
||
67 | * Code depot. |
||
68 | * |
||
69 | * @var string|null |
||
70 | */ |
||
71 | private $codeDepot; |
||
72 | |||
73 | /** |
||
74 | * Code devise. |
||
75 | * |
||
76 | * @var string|null |
||
77 | */ |
||
78 | private $codeDevise; |
||
79 | |||
80 | /** |
||
81 | * Code famille. |
||
82 | * |
||
83 | * @var string|null |
||
84 | */ |
||
85 | private $codeFamille; |
||
86 | |||
87 | /** |
||
88 | * Code geo. |
||
89 | * |
||
90 | * @var string|null |
||
91 | */ |
||
92 | private $codeGeo; |
||
93 | |||
94 | /** |
||
95 | * Code langue designation article. |
||
96 | * |
||
97 | * @var string|null |
||
98 | */ |
||
99 | private $codeLangueDesignationArticle; |
||
100 | |||
101 | /** |
||
102 | * Code mode reglement. |
||
103 | * |
||
104 | * @var string|null |
||
105 | */ |
||
106 | private $codeModeReglement; |
||
107 | |||
108 | /** |
||
109 | * Code origine. |
||
110 | * |
||
111 | * @var string|null |
||
112 | */ |
||
113 | private $codeOrigine; |
||
114 | |||
115 | /** |
||
116 | * Code regroupement. |
||
117 | * |
||
118 | * @var string|null |
||
119 | */ |
||
120 | private $codeRegroupement; |
||
121 | |||
122 | /** |
||
123 | * Code representant. |
||
124 | * |
||
125 | * @var string|null |
||
126 | */ |
||
127 | private $codeRepresentant; |
||
128 | |||
129 | /** |
||
130 | * Code revision. |
||
131 | * |
||
132 | * @var string|null |
||
133 | */ |
||
134 | private $codeRevision; |
||
135 | |||
136 | /** |
||
137 | * Code sous famille. |
||
138 | * |
||
139 | * @var string|null |
||
140 | */ |
||
141 | private $codeSousFamille; |
||
142 | |||
143 | /** |
||
144 | * Code sous tournee. |
||
145 | * |
||
146 | * @var string|null |
||
147 | */ |
||
148 | private $codeSousTournee; |
||
149 | |||
150 | /** |
||
151 | * Code tva. |
||
152 | * |
||
153 | * @var string|null |
||
154 | */ |
||
155 | private $codeTva; |
||
156 | |||
157 | /** |
||
158 | * Code tournee. |
||
159 | * |
||
160 | * @var string|null |
||
161 | */ |
||
162 | private $codeTournee; |
||
163 | |||
164 | /** |
||
165 | * Code ventil compta. |
||
166 | * |
||
167 | * @var string|null |
||
168 | */ |
||
169 | private $codeVentilCompta; |
||
170 | |||
171 | /** |
||
172 | * Collectif comptable. |
||
173 | * |
||
174 | * @var int|null |
||
175 | */ |
||
176 | private $collectifComptable; |
||
177 | |||
178 | /** |
||
179 | * Commentaire. |
||
180 | * |
||
181 | * @var string|null |
||
182 | */ |
||
183 | private $commentaire; |
||
184 | |||
185 | /** |
||
186 | * Date creat. |
||
187 | * |
||
188 | * @var DateTime|null |
||
189 | */ |
||
190 | private $dateCreat; |
||
191 | |||
192 | /** |
||
193 | * Date entree. |
||
194 | * |
||
195 | * @var DateTime|null |
||
196 | */ |
||
197 | private $dateEntree; |
||
198 | |||
199 | /** |
||
200 | * Date modif. |
||
201 | * |
||
202 | * @var DateTime|null |
||
203 | */ |
||
204 | private $dateModif; |
||
205 | |||
206 | /** |
||
207 | * Date sortie. |
||
208 | * |
||
209 | * @var DateTime|null |
||
210 | */ |
||
211 | private $dateSortie; |
||
212 | |||
213 | /** |
||
214 | * Derniere annee facturee. |
||
215 | * |
||
216 | * @var int|null |
||
217 | */ |
||
218 | private $derniereAnneeFacturee; |
||
219 | |||
220 | /** |
||
221 | * Domiciliation bancaire1. |
||
222 | * |
||
223 | * @var string|null |
||
224 | */ |
||
225 | private $domiciliationBancaire1; |
||
226 | |||
227 | /** |
||
228 | * Domiciliation bancaire2. |
||
229 | * |
||
230 | * @var string|null |
||
231 | */ |
||
232 | private $domiciliationBancaire2; |
||
233 | |||
234 | /** |
||
235 | * Echeance depart. |
||
236 | * |
||
237 | * @var int|null |
||
238 | */ |
||
239 | private $echeanceDepart; |
||
240 | |||
241 | /** |
||
242 | * Echeance le. |
||
243 | * |
||
244 | * @var int|null |
||
245 | */ |
||
246 | private $echeanceLe; |
||
247 | |||
248 | /** |
||
249 | * Echeance nb jours. |
||
250 | * |
||
251 | * @var int|null |
||
252 | */ |
||
253 | private $echeanceNbJours; |
||
254 | |||
255 | /** |
||
256 | * Facture euros. |
||
257 | * |
||
258 | * @var bool|null |
||
259 | */ |
||
260 | private $factureEuros; |
||
261 | |||
262 | /** |
||
263 | * Id. |
||
264 | * |
||
265 | * @var string|null |
||
266 | */ |
||
267 | private $id; |
||
268 | |||
269 | /** |
||
270 | * Nb bl. |
||
271 | * |
||
272 | * @var int|null |
||
273 | */ |
||
274 | private $nbBl; |
||
275 | |||
276 | /** |
||
277 | * Nb facture. |
||
278 | * |
||
279 | * @var int|null |
||
280 | */ |
||
281 | private $nbFacture; |
||
282 | |||
283 | /** |
||
284 | * Nombre echeances. |
||
285 | * |
||
286 | * @var int|null |
||
287 | */ |
||
288 | private $nombreEcheances; |
||
289 | |||
290 | /** |
||
291 | * Num cpt collectif. |
||
292 | * |
||
293 | * @var string|null |
||
294 | */ |
||
295 | private $numCptCollectif; |
||
296 | |||
297 | /** |
||
298 | * Num cpt comptable. |
||
299 | * |
||
300 | * @var string|null |
||
301 | */ |
||
302 | private $numCptComptable; |
||
303 | |||
304 | /** |
||
305 | * Premiere annee facturee. |
||
306 | * |
||
307 | * @var int|null |
||
308 | */ |
||
309 | private $premiereAnneeFacturee; |
||
310 | |||
311 | /** |
||
312 | * Prospect. |
||
313 | * |
||
314 | * @var bool|null |
||
315 | */ |
||
316 | private $prospect; |
||
317 | |||
318 | /** |
||
319 | * Rib. |
||
320 | * |
||
321 | * @var string|null |
||
322 | */ |
||
323 | private $rib; |
||
324 | |||
325 | /** |
||
326 | * Remise ligne1. |
||
327 | * |
||
328 | * @var float|null |
||
329 | */ |
||
330 | private $remiseLigne1; |
||
331 | |||
332 | /** |
||
333 | * Remise ligne2. |
||
334 | * |
||
335 | * @var float|null |
||
336 | */ |
||
337 | private $remiseLigne2; |
||
338 | |||
339 | /** |
||
340 | * Remise ligne3. |
||
341 | * |
||
342 | * @var float|null |
||
343 | */ |
||
344 | private $remiseLigne3; |
||
345 | |||
346 | /** |
||
347 | * Remise pied1. |
||
348 | * |
||
349 | * @var float|null |
||
350 | */ |
||
351 | private $remisePied1; |
||
352 | |||
353 | /** |
||
354 | * Remise pied2. |
||
355 | * |
||
356 | * @var float|null |
||
357 | */ |
||
358 | private $remisePied2; |
||
359 | |||
360 | /** |
||
361 | * Remise pied3. |
||
362 | * |
||
363 | * @var float|null |
||
364 | */ |
||
365 | private $remisePied3; |
||
366 | |||
367 | /** |
||
368 | * Soumis escompte. |
||
369 | * |
||
370 | * @var bool|null |
||
371 | */ |
||
372 | private $soumisEscompte; |
||
373 | |||
374 | /** |
||
375 | * Taux escompte. |
||
376 | * |
||
377 | * @var float|null |
||
378 | */ |
||
379 | private $tauxEscompte; |
||
380 | |||
381 | /** |
||
382 | * Transporteur. |
||
383 | * |
||
384 | * @var string|null |
||
385 | */ |
||
386 | private $transporteur; |
||
387 | |||
388 | /** |
||
389 | * Type facture. |
||
390 | * |
||
391 | * @var int|null |
||
392 | */ |
||
393 | private $typeFacture; |
||
394 | |||
395 | |||
396 | /** |
||
397 | * Constructor. |
||
398 | */ |
||
399 | public function __construct() { |
||
402 | |||
403 | /** |
||
404 | * Get the actif. |
||
405 | * |
||
406 | * @return bool|null Returns the actif. |
||
407 | */ |
||
408 | public function getActif(): ?bool{ |
||
411 | |||
412 | /** |
||
413 | * Get the bloque. |
||
414 | * |
||
415 | * @return bool|null Returns the bloque. |
||
416 | */ |
||
417 | public function getBloque(): ?bool{ |
||
420 | |||
421 | /** |
||
422 | * Get the cle alpha. |
||
423 | * |
||
424 | * @return string|null Returns the cle alpha. |
||
425 | */ |
||
426 | public function getCleAlpha(): ?string{ |
||
429 | |||
430 | /** |
||
431 | * Get the code analytique. |
||
432 | * |
||
433 | * @return string|null Returns the code analytique. |
||
434 | */ |
||
435 | public function getCodeAnalytique(): ?string{ |
||
438 | |||
439 | /** |
||
440 | * Get the code categorie client. |
||
441 | * |
||
442 | * @return string|null Returns the code categorie client. |
||
443 | */ |
||
444 | public function getCodeCategorieClient(): ?string{ |
||
447 | |||
448 | /** |
||
449 | * Get the code client fact. |
||
450 | * |
||
451 | * @return string|null Returns the code client fact. |
||
452 | */ |
||
453 | public function getCodeClientFact(): ?string{ |
||
456 | |||
457 | /** |
||
458 | * Get the code depot. |
||
459 | * |
||
460 | * @return string|null Returns the code depot. |
||
461 | */ |
||
462 | public function getCodeDepot(): ?string{ |
||
465 | |||
466 | /** |
||
467 | * Get the code devise. |
||
468 | * |
||
469 | * @return string|null Returns the code devise. |
||
470 | */ |
||
471 | public function getCodeDevise(): ?string{ |
||
474 | |||
475 | /** |
||
476 | * Get the code famille. |
||
477 | * |
||
478 | * @return string|null Returns the code famille. |
||
479 | */ |
||
480 | public function getCodeFamille(): ?string{ |
||
483 | |||
484 | /** |
||
485 | * Get the code geo. |
||
486 | * |
||
487 | * @return string|null Returns the code geo. |
||
488 | */ |
||
489 | public function getCodeGeo(): ?string{ |
||
492 | |||
493 | /** |
||
494 | * Get the code langue designation article. |
||
495 | * |
||
496 | * @return string|null Returns the code langue designation article. |
||
497 | */ |
||
498 | public function getCodeLangueDesignationArticle(): ?string{ |
||
501 | |||
502 | /** |
||
503 | * Get the code mode reglement. |
||
504 | * |
||
505 | * @return string|null Returns the code mode reglement. |
||
506 | */ |
||
507 | public function getCodeModeReglement(): ?string{ |
||
510 | |||
511 | /** |
||
512 | * Get the code origine. |
||
513 | * |
||
514 | * @return string|null Returns the code origine. |
||
515 | */ |
||
516 | public function getCodeOrigine(): ?string{ |
||
519 | |||
520 | /** |
||
521 | * Get the code regroupement. |
||
522 | * |
||
523 | * @return string|null Returns the code regroupement. |
||
524 | */ |
||
525 | public function getCodeRegroupement(): ?string{ |
||
528 | |||
529 | /** |
||
530 | * Get the code representant. |
||
531 | * |
||
532 | * @return string|null Returns the code representant. |
||
533 | */ |
||
534 | public function getCodeRepresentant(): ?string{ |
||
537 | |||
538 | /** |
||
539 | * Get the code revision. |
||
540 | * |
||
541 | * @return string|null Returns the code revision. |
||
542 | */ |
||
543 | public function getCodeRevision(): ?string{ |
||
546 | |||
547 | /** |
||
548 | * Get the code sous famille. |
||
549 | * |
||
550 | * @return string|null Returns the code sous famille. |
||
551 | */ |
||
552 | public function getCodeSousFamille(): ?string{ |
||
555 | |||
556 | /** |
||
557 | * Get the code sous tournee. |
||
558 | * |
||
559 | * @return string|null Returns the code sous tournee. |
||
560 | */ |
||
561 | public function getCodeSousTournee(): ?string{ |
||
564 | |||
565 | /** |
||
566 | * Get the code tva. |
||
567 | * |
||
568 | * @return string|null Returns the code tva. |
||
569 | */ |
||
570 | public function getCodeTva(): ?string{ |
||
573 | |||
574 | /** |
||
575 | * Get the code tournee. |
||
576 | * |
||
577 | * @return string|null Returns the code tournee. |
||
578 | */ |
||
579 | public function getCodeTournee(): ?string{ |
||
582 | |||
583 | /** |
||
584 | * Get the code ventil compta. |
||
585 | * |
||
586 | * @return string|null Returns the code ventil compta. |
||
587 | */ |
||
588 | public function getCodeVentilCompta(): ?string{ |
||
591 | |||
592 | /** |
||
593 | * Get the collectif comptable. |
||
594 | * |
||
595 | * @return int|null Returns the collectif comptable. |
||
596 | */ |
||
597 | public function getCollectifComptable(): ?int{ |
||
600 | |||
601 | /** |
||
602 | * Get the commentaire. |
||
603 | * |
||
604 | * @return string|null Returns the commentaire. |
||
605 | */ |
||
606 | public function getCommentaire(): ?string{ |
||
609 | |||
610 | /** |
||
611 | * Get the date creat. |
||
612 | * |
||
613 | * @return DateTime|null Returns the date creat. |
||
614 | */ |
||
615 | public function getDateCreat(): ?DateTime{ |
||
618 | |||
619 | /** |
||
620 | * Get the date entree. |
||
621 | * |
||
622 | * @return DateTime|null Returns the date entree. |
||
623 | */ |
||
624 | public function getDateEntree(): ?DateTime{ |
||
627 | |||
628 | /** |
||
629 | * Get the date modif. |
||
630 | * |
||
631 | * @return DateTime|null Returns the date modif. |
||
632 | */ |
||
633 | public function getDateModif(): ?DateTime{ |
||
636 | |||
637 | /** |
||
638 | * Get the date sortie. |
||
639 | * |
||
640 | * @return DateTime|null Returns the date sortie. |
||
641 | */ |
||
642 | public function getDateSortie(): ?DateTime{ |
||
645 | |||
646 | /** |
||
647 | * Get the derniere annee facturee. |
||
648 | * |
||
649 | * @return int|null Returns the derniere annee facturee. |
||
650 | */ |
||
651 | public function getDerniereAnneeFacturee(): ?int{ |
||
654 | |||
655 | /** |
||
656 | * Get the domiciliation bancaire1. |
||
657 | * |
||
658 | * @return string|null Returns the domiciliation bancaire1. |
||
659 | */ |
||
660 | public function getDomiciliationBancaire1(): ?string{ |
||
663 | |||
664 | /** |
||
665 | * Get the domiciliation bancaire2. |
||
666 | * |
||
667 | * @return string|null Returns the domiciliation bancaire2. |
||
668 | */ |
||
669 | public function getDomiciliationBancaire2(): ?string{ |
||
672 | |||
673 | /** |
||
674 | * Get the echeance depart. |
||
675 | * |
||
676 | * @return int|null Returns the echeance depart. |
||
677 | */ |
||
678 | public function getEcheanceDepart(): ?int{ |
||
681 | |||
682 | /** |
||
683 | * Get the echeance le. |
||
684 | * |
||
685 | * @return int|null Returns the echeance le. |
||
686 | */ |
||
687 | public function getEcheanceLe(): ?int{ |
||
690 | |||
691 | /** |
||
692 | * Get the echeance nb jours. |
||
693 | * |
||
694 | * @return int|null Returns the echeance nb jours. |
||
695 | */ |
||
696 | public function getEcheanceNbJours(): ?int{ |
||
699 | |||
700 | /** |
||
701 | * Get the facture euros. |
||
702 | * |
||
703 | * @return bool|null Returns the facture euros. |
||
704 | */ |
||
705 | public function getFactureEuros(): ?bool{ |
||
708 | |||
709 | /** |
||
710 | * Get the id. |
||
711 | * |
||
712 | * @return string|null Returns the id. |
||
713 | */ |
||
714 | public function getId(): ?string{ |
||
717 | |||
718 | /** |
||
719 | * Get the nb bl. |
||
720 | * |
||
721 | * @return int|null Returns the nb bl. |
||
722 | */ |
||
723 | public function getNbBl(): ?int{ |
||
726 | |||
727 | /** |
||
728 | * Get the nb facture. |
||
729 | * |
||
730 | * @return int|null Returns the nb facture. |
||
731 | */ |
||
732 | public function getNbFacture(): ?int{ |
||
735 | |||
736 | /** |
||
737 | * Get the nombre echeances. |
||
738 | * |
||
739 | * @return int|null Returns the nombre echeances. |
||
740 | */ |
||
741 | public function getNombreEcheances(): ?int{ |
||
744 | |||
745 | /** |
||
746 | * Get the num cpt collectif. |
||
747 | * |
||
748 | * @return string|null Returns the num cpt collectif. |
||
749 | */ |
||
750 | public function getNumCptCollectif(): ?string{ |
||
753 | |||
754 | /** |
||
755 | * Get the num cpt comptable. |
||
756 | * |
||
757 | * @return string|null Returns the num cpt comptable. |
||
758 | */ |
||
759 | public function getNumCptComptable(): ?string{ |
||
762 | |||
763 | /** |
||
764 | * Get the premiere annee facturee. |
||
765 | * |
||
766 | * @return int|null Returns the premiere annee facturee. |
||
767 | */ |
||
768 | public function getPremiereAnneeFacturee(): ?int{ |
||
771 | |||
772 | /** |
||
773 | * Get the prospect. |
||
774 | * |
||
775 | * @return bool|null Returns the prospect. |
||
776 | */ |
||
777 | public function getProspect(): ?bool{ |
||
780 | |||
781 | /** |
||
782 | * Get the rib. |
||
783 | * |
||
784 | * @return string|null Returns the rib. |
||
785 | */ |
||
786 | public function getRib(): ?string{ |
||
789 | |||
790 | /** |
||
791 | * Get the remise ligne1. |
||
792 | * |
||
793 | * @return float|null Returns the remise ligne1. |
||
794 | */ |
||
795 | public function getRemiseLigne1(): ?float{ |
||
798 | |||
799 | /** |
||
800 | * Get the remise ligne2. |
||
801 | * |
||
802 | * @return float|null Returns the remise ligne2. |
||
803 | */ |
||
804 | public function getRemiseLigne2(): ?float{ |
||
807 | |||
808 | /** |
||
809 | * Get the remise ligne3. |
||
810 | * |
||
811 | * @return float|null Returns the remise ligne3. |
||
812 | */ |
||
813 | public function getRemiseLigne3(): ?float{ |
||
816 | |||
817 | /** |
||
818 | * Get the remise pied1. |
||
819 | * |
||
820 | * @return float|null Returns the remise pied1. |
||
821 | */ |
||
822 | public function getRemisePied1(): ?float{ |
||
825 | |||
826 | /** |
||
827 | * Get the remise pied2. |
||
828 | * |
||
829 | * @return float|null Returns the remise pied2. |
||
830 | */ |
||
831 | public function getRemisePied2(): ?float{ |
||
834 | |||
835 | /** |
||
836 | * Get the remise pied3. |
||
837 | * |
||
838 | * @return float|null Returns the remise pied3. |
||
839 | */ |
||
840 | public function getRemisePied3(): ?float{ |
||
843 | |||
844 | /** |
||
845 | * Get the soumis escompte. |
||
846 | * |
||
847 | * @return bool|null Returns the soumis escompte. |
||
848 | */ |
||
849 | public function getSoumisEscompte(): ?bool{ |
||
852 | |||
853 | /** |
||
854 | * Get the taux escompte. |
||
855 | * |
||
856 | * @return float|null Returns the taux escompte. |
||
857 | */ |
||
858 | public function getTauxEscompte(): ?float{ |
||
861 | |||
862 | /** |
||
863 | * Get the transporteur. |
||
864 | * |
||
865 | * @return string|null Returns the transporteur. |
||
866 | */ |
||
867 | public function getTransporteur(): ?string{ |
||
870 | |||
871 | /** |
||
872 | * Get the type facture. |
||
873 | * |
||
874 | * @return int|null Returns the type facture. |
||
875 | */ |
||
876 | public function getTypeFacture(): ?int{ |
||
879 | |||
880 | /** |
||
881 | * Set the actif. |
||
882 | * |
||
883 | * @param bool|null $actif The actif. |
||
884 | * @return Clients Returns this Clients. |
||
885 | */ |
||
886 | public function setActif(?bool $actif): Clients { |
||
890 | |||
891 | /** |
||
892 | * Set the bloque. |
||
893 | * |
||
894 | * @param bool|null $bloque The bloque. |
||
895 | * @return Clients Returns this Clients. |
||
896 | */ |
||
897 | public function setBloque(?bool $bloque): Clients { |
||
901 | |||
902 | /** |
||
903 | * Set the cle alpha. |
||
904 | * |
||
905 | * @param string|null $cleAlpha The cle alpha. |
||
906 | * @return Clients Returns this Clients. |
||
907 | */ |
||
908 | public function setCleAlpha(?string $cleAlpha): Clients { |
||
912 | |||
913 | /** |
||
914 | * Set the code analytique. |
||
915 | * |
||
916 | * @param string|null $codeAnalytique The code analytique. |
||
917 | * @return Clients Returns this Clients. |
||
918 | */ |
||
919 | public function setCodeAnalytique(?string $codeAnalytique): Clients { |
||
923 | |||
924 | /** |
||
925 | * Set the code categorie client. |
||
926 | * |
||
927 | * @param string|null $codeCategorieClient The code categorie client. |
||
928 | * @return Clients Returns this Clients. |
||
929 | */ |
||
930 | public function setCodeCategorieClient(?string $codeCategorieClient): Clients { |
||
934 | |||
935 | /** |
||
936 | * Set the code client fact. |
||
937 | * |
||
938 | * @param string|null $codeClientFact The code client fact. |
||
939 | * @return Clients Returns this Clients. |
||
940 | */ |
||
941 | public function setCodeClientFact(?string $codeClientFact): Clients { |
||
945 | |||
946 | /** |
||
947 | * Set the code depot. |
||
948 | * |
||
949 | * @param string|null $codeDepot The code depot. |
||
950 | * @return Clients Returns this Clients. |
||
951 | */ |
||
952 | public function setCodeDepot(?string $codeDepot): Clients { |
||
956 | |||
957 | /** |
||
958 | * Set the code devise. |
||
959 | * |
||
960 | * @param string|null $codeDevise The code devise. |
||
961 | * @return Clients Returns this Clients. |
||
962 | */ |
||
963 | public function setCodeDevise(?string $codeDevise): Clients { |
||
967 | |||
968 | /** |
||
969 | * Set the code famille. |
||
970 | * |
||
971 | * @param string|null $codeFamille The code famille. |
||
972 | * @return Clients Returns this Clients. |
||
973 | */ |
||
974 | public function setCodeFamille(?string $codeFamille): Clients { |
||
978 | |||
979 | /** |
||
980 | * Set the code geo. |
||
981 | * |
||
982 | * @param string|null $codeGeo The code geo. |
||
983 | * @return Clients Returns this Clients. |
||
984 | */ |
||
985 | public function setCodeGeo(?string $codeGeo): Clients { |
||
989 | |||
990 | /** |
||
991 | * Set the code langue designation article. |
||
992 | * |
||
993 | * @param string|null $codeLangueDesignationArticle The code langue designation article. |
||
994 | * @return Clients Returns this Clients. |
||
995 | */ |
||
996 | public function setCodeLangueDesignationArticle(?string $codeLangueDesignationArticle): Clients { |
||
1000 | |||
1001 | /** |
||
1002 | * Set the code mode reglement. |
||
1003 | * |
||
1004 | * @param string|null $codeModeReglement The code mode reglement. |
||
1005 | * @return Clients Returns this Clients. |
||
1006 | */ |
||
1007 | public function setCodeModeReglement(?string $codeModeReglement): Clients { |
||
1011 | |||
1012 | /** |
||
1013 | * Set the code origine. |
||
1014 | * |
||
1015 | * @param string|null $codeOrigine The code origine. |
||
1016 | * @return Clients Returns this Clients. |
||
1017 | */ |
||
1018 | public function setCodeOrigine(?string $codeOrigine): Clients { |
||
1022 | |||
1023 | /** |
||
1024 | * Set the code regroupement. |
||
1025 | * |
||
1026 | * @param string|null $codeRegroupement The code regroupement. |
||
1027 | * @return Clients Returns this Clients. |
||
1028 | */ |
||
1029 | public function setCodeRegroupement(?string $codeRegroupement): Clients { |
||
1033 | |||
1034 | /** |
||
1035 | * Set the code representant. |
||
1036 | * |
||
1037 | * @param string|null $codeRepresentant The code representant. |
||
1038 | * @return Clients Returns this Clients. |
||
1039 | */ |
||
1040 | public function setCodeRepresentant(?string $codeRepresentant): Clients { |
||
1044 | |||
1045 | /** |
||
1046 | * Set the code revision. |
||
1047 | * |
||
1048 | * @param string|null $codeRevision The code revision. |
||
1049 | * @return Clients Returns this Clients. |
||
1050 | */ |
||
1051 | public function setCodeRevision(?string $codeRevision): Clients { |
||
1055 | |||
1056 | /** |
||
1057 | * Set the code sous famille. |
||
1058 | * |
||
1059 | * @param string|null $codeSousFamille The code sous famille. |
||
1060 | * @return Clients Returns this Clients. |
||
1061 | */ |
||
1062 | public function setCodeSousFamille(?string $codeSousFamille): Clients { |
||
1066 | |||
1067 | /** |
||
1068 | * Set the code sous tournee. |
||
1069 | * |
||
1070 | * @param string|null $codeSousTournee The code sous tournee. |
||
1071 | * @return Clients Returns this Clients. |
||
1072 | */ |
||
1073 | public function setCodeSousTournee(?string $codeSousTournee): Clients { |
||
1077 | |||
1078 | /** |
||
1079 | * Set the code tva. |
||
1080 | * |
||
1081 | * @param string|null $codeTva The code tva. |
||
1082 | * @return Clients Returns this Clients. |
||
1083 | */ |
||
1084 | public function setCodeTva(?string $codeTva): Clients { |
||
1088 | |||
1089 | /** |
||
1090 | * Set the code tournee. |
||
1091 | * |
||
1092 | * @param string|null $codeTournee The code tournee. |
||
1093 | * @return Clients Returns this Clients. |
||
1094 | */ |
||
1095 | public function setCodeTournee(?string $codeTournee): Clients { |
||
1099 | |||
1100 | /** |
||
1101 | * Set the code ventil compta. |
||
1102 | * |
||
1103 | * @param string|null $codeVentilCompta The code ventil compta. |
||
1104 | * @return Clients Returns this Clients. |
||
1105 | */ |
||
1106 | public function setCodeVentilCompta(?string $codeVentilCompta): Clients { |
||
1110 | |||
1111 | /** |
||
1112 | * Set the collectif comptable. |
||
1113 | * |
||
1114 | * @param int|null $collectifComptable The collectif comptable. |
||
1115 | * @return Clients Returns this Clients. |
||
1116 | */ |
||
1117 | public function setCollectifComptable(?int $collectifComptable): Clients { |
||
1121 | |||
1122 | /** |
||
1123 | * Set the commentaire. |
||
1124 | * |
||
1125 | * @param string|null $commentaire The commentaire. |
||
1126 | * @return Clients Returns this Clients. |
||
1127 | */ |
||
1128 | public function setCommentaire(?string $commentaire): Clients { |
||
1132 | |||
1133 | /** |
||
1134 | * Set the date creat. |
||
1135 | * |
||
1136 | * @param DateTime|null $dateCreat The date creat. |
||
1137 | * @return Clients Returns this Clients. |
||
1138 | */ |
||
1139 | public function setDateCreat(?DateTime $dateCreat): Clients { |
||
1143 | |||
1144 | /** |
||
1145 | * Set the date entree. |
||
1146 | * |
||
1147 | * @param DateTime|null $dateEntree The date entree. |
||
1148 | * @return Clients Returns this Clients. |
||
1149 | */ |
||
1150 | public function setDateEntree(?DateTime $dateEntree): Clients { |
||
1154 | |||
1155 | /** |
||
1156 | * Set the date modif. |
||
1157 | * |
||
1158 | * @param DateTime|null $dateModif The date modif. |
||
1159 | * @return Clients Returns this Clients. |
||
1160 | */ |
||
1161 | public function setDateModif(?DateTime $dateModif): Clients { |
||
1165 | |||
1166 | /** |
||
1167 | * Set the date sortie. |
||
1168 | * |
||
1169 | * @param DateTime|null $dateSortie The date sortie. |
||
1170 | * @return Clients Returns this Clients. |
||
1171 | */ |
||
1172 | public function setDateSortie(?DateTime $dateSortie): Clients { |
||
1176 | |||
1177 | /** |
||
1178 | * Set the derniere annee facturee. |
||
1179 | * |
||
1180 | * @param int|null $derniereAnneeFacturee The derniere annee facturee. |
||
1181 | * @return Clients Returns this Clients. |
||
1182 | */ |
||
1183 | public function setDerniereAnneeFacturee(?int $derniereAnneeFacturee): Clients { |
||
1187 | |||
1188 | /** |
||
1189 | * Set the domiciliation bancaire1. |
||
1190 | * |
||
1191 | * @param string|null $domiciliationBancaire1 The domiciliation bancaire1. |
||
1192 | * @return Clients Returns this Clients. |
||
1193 | */ |
||
1194 | public function setDomiciliationBancaire1(?string $domiciliationBancaire1): Clients { |
||
1198 | |||
1199 | /** |
||
1200 | * Set the domiciliation bancaire2. |
||
1201 | * |
||
1202 | * @param string|null $domiciliationBancaire2 The domiciliation bancaire2. |
||
1203 | * @return Clients Returns this Clients. |
||
1204 | */ |
||
1205 | public function setDomiciliationBancaire2(?string $domiciliationBancaire2): Clients { |
||
1209 | |||
1210 | /** |
||
1211 | * Set the echeance depart. |
||
1212 | * |
||
1213 | * @param int|null $echeanceDepart The echeance depart. |
||
1214 | * @return Clients Returns this Clients. |
||
1215 | */ |
||
1216 | public function setEcheanceDepart(?int $echeanceDepart): Clients { |
||
1220 | |||
1221 | /** |
||
1222 | * Set the echeance le. |
||
1223 | * |
||
1224 | * @param int|null $echeanceLe The echeance le. |
||
1225 | * @return Clients Returns this Clients. |
||
1226 | */ |
||
1227 | public function setEcheanceLe(?int $echeanceLe): Clients { |
||
1231 | |||
1232 | /** |
||
1233 | * Set the echeance nb jours. |
||
1234 | * |
||
1235 | * @param int|null $echeanceNbJours The echeance nb jours. |
||
1236 | * @return Clients Returns this Clients. |
||
1237 | */ |
||
1238 | public function setEcheanceNbJours(?int $echeanceNbJours): Clients { |
||
1242 | |||
1243 | /** |
||
1244 | * Set the facture euros. |
||
1245 | * |
||
1246 | * @param bool|null $factureEuros The facture euros. |
||
1247 | * @return Clients Returns this Clients. |
||
1248 | */ |
||
1249 | public function setFactureEuros(?bool $factureEuros): Clients { |
||
1253 | |||
1254 | /** |
||
1255 | * Set the id. |
||
1256 | * |
||
1257 | * @param string|null $id The id. |
||
1258 | * @return Clients Returns this Clients. |
||
1259 | */ |
||
1260 | public function setId(?string $id): Clients { |
||
1264 | |||
1265 | /** |
||
1266 | * Set the nb bl. |
||
1267 | * |
||
1268 | * @param int|null $nbBl The nb bl. |
||
1269 | * @return Clients Returns this Clients. |
||
1270 | */ |
||
1271 | public function setNbBl(?int $nbBl): Clients { |
||
1275 | |||
1276 | /** |
||
1277 | * Set the nb facture. |
||
1278 | * |
||
1279 | * @param int|null $nbFacture The nb facture. |
||
1280 | * @return Clients Returns this Clients. |
||
1281 | */ |
||
1282 | public function setNbFacture(?int $nbFacture): Clients { |
||
1286 | |||
1287 | /** |
||
1288 | * Set the nombre echeances. |
||
1289 | * |
||
1290 | * @param int|null $nombreEcheances The nombre echeances. |
||
1291 | * @return Clients Returns this Clients. |
||
1292 | */ |
||
1293 | public function setNombreEcheances(?int $nombreEcheances): Clients { |
||
1297 | |||
1298 | /** |
||
1299 | * Set the num cpt collectif. |
||
1300 | * |
||
1301 | * @param string|null $numCptCollectif The num cpt collectif. |
||
1302 | * @return Clients Returns this Clients. |
||
1303 | */ |
||
1304 | public function setNumCptCollectif(?string $numCptCollectif): Clients { |
||
1308 | |||
1309 | /** |
||
1310 | * Set the num cpt comptable. |
||
1311 | * |
||
1312 | * @param string|null $numCptComptable The num cpt comptable. |
||
1313 | * @return Clients Returns this Clients. |
||
1314 | */ |
||
1315 | public function setNumCptComptable(?string $numCptComptable): Clients { |
||
1319 | |||
1320 | /** |
||
1321 | * Set the premiere annee facturee. |
||
1322 | * |
||
1323 | * @param int|null $premiereAnneeFacturee The premiere annee facturee. |
||
1324 | * @return Clients Returns this Clients. |
||
1325 | */ |
||
1326 | public function setPremiereAnneeFacturee(?int $premiereAnneeFacturee): Clients { |
||
1330 | |||
1331 | /** |
||
1332 | * Set the prospect. |
||
1333 | * |
||
1334 | * @param bool|null $prospect The prospect. |
||
1335 | * @return Clients Returns this Clients. |
||
1336 | */ |
||
1337 | public function setProspect(?bool $prospect): Clients { |
||
1341 | |||
1342 | /** |
||
1343 | * Set the rib. |
||
1344 | * |
||
1345 | * @param string|null $rib The rib. |
||
1346 | * @return Clients Returns this Clients. |
||
1347 | */ |
||
1348 | public function setRib(?string $rib): Clients { |
||
1352 | |||
1353 | /** |
||
1354 | * Set the remise ligne1. |
||
1355 | * |
||
1356 | * @param float|null $remiseLigne1 The remise ligne1. |
||
1357 | * @return Clients Returns this Clients. |
||
1358 | */ |
||
1359 | public function setRemiseLigne1(?float $remiseLigne1): Clients { |
||
1363 | |||
1364 | /** |
||
1365 | * Set the remise ligne2. |
||
1366 | * |
||
1367 | * @param float|null $remiseLigne2 The remise ligne2. |
||
1368 | * @return Clients Returns this Clients. |
||
1369 | */ |
||
1370 | public function setRemiseLigne2(?float $remiseLigne2): Clients { |
||
1374 | |||
1375 | /** |
||
1376 | * Set the remise ligne3. |
||
1377 | * |
||
1378 | * @param float|null $remiseLigne3 The remise ligne3. |
||
1379 | * @return Clients Returns this Clients. |
||
1380 | */ |
||
1381 | public function setRemiseLigne3(?float $remiseLigne3): Clients { |
||
1385 | |||
1386 | /** |
||
1387 | * Set the remise pied1. |
||
1388 | * |
||
1389 | * @param float|null $remisePied1 The remise pied1. |
||
1390 | * @return Clients Returns this Clients. |
||
1391 | */ |
||
1392 | public function setRemisePied1(?float $remisePied1): Clients { |
||
1396 | |||
1397 | /** |
||
1398 | * Set the remise pied2. |
||
1399 | * |
||
1400 | * @param float|null $remisePied2 The remise pied2. |
||
1401 | * @return Clients Returns this Clients. |
||
1402 | */ |
||
1403 | public function setRemisePied2(?float $remisePied2): Clients { |
||
1407 | |||
1408 | /** |
||
1409 | * Set the remise pied3. |
||
1410 | * |
||
1411 | * @param float|null $remisePied3 The remise pied3. |
||
1412 | * @return Clients Returns this Clients. |
||
1413 | */ |
||
1414 | public function setRemisePied3(?float $remisePied3): Clients { |
||
1418 | |||
1419 | /** |
||
1420 | * Set the soumis escompte. |
||
1421 | * |
||
1422 | * @param bool|null $soumisEscompte The soumis escompte. |
||
1423 | * @return Clients Returns this Clients. |
||
1424 | */ |
||
1425 | public function setSoumisEscompte(?bool $soumisEscompte): Clients { |
||
1429 | |||
1430 | /** |
||
1431 | * Set the taux escompte. |
||
1432 | * |
||
1433 | * @param float|null $tauxEscompte The taux escompte. |
||
1434 | * @return Clients Returns this Clients. |
||
1435 | */ |
||
1436 | public function setTauxEscompte(?float $tauxEscompte): Clients { |
||
1440 | |||
1441 | /** |
||
1442 | * Set the transporteur. |
||
1443 | * |
||
1444 | * @param string|null $transporteur The transporteur. |
||
1445 | * @return Clients Returns this Clients. |
||
1446 | */ |
||
1447 | public function setTransporteur(?string $transporteur): Clients { |
||
1451 | |||
1452 | /** |
||
1453 | * Set the type facture. |
||
1454 | * |
||
1455 | * @param int|null $typeFacture The type facture. |
||
1456 | * @return Clients Returns this Clients. |
||
1457 | */ |
||
1458 | public function setTypeFacture(?int $typeFacture): Clients { |
||
1462 | } |
||
1463 |