Complex classes like CdeFournisseurEntete 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 CdeFournisseurEntete, and based on these observations, apply Extract Interface, too.
1 | <?php |
||
22 | class CdeFournisseurEntete { |
||
23 | |||
24 | /** |
||
25 | * Btq. |
||
26 | * |
||
27 | * @var string|null |
||
28 | */ |
||
29 | private $btq; |
||
30 | |||
31 | /** |
||
32 | * Btq2. |
||
33 | * |
||
34 | * @var string|null |
||
35 | */ |
||
36 | private $btq2; |
||
37 | |||
38 | /** |
||
39 | * Bureau distributeur. |
||
40 | * |
||
41 | * @var string|null |
||
42 | */ |
||
43 | private $bureauDistributeur; |
||
44 | |||
45 | /** |
||
46 | * Bureau distributeur2. |
||
47 | * |
||
48 | * @var string|null |
||
49 | */ |
||
50 | private $bureauDistributeur2; |
||
51 | |||
52 | /** |
||
53 | * Code devise. |
||
54 | * |
||
55 | * @var string|null |
||
56 | */ |
||
57 | private $codeDevise; |
||
58 | |||
59 | /** |
||
60 | * Code fournisseur. |
||
61 | * |
||
62 | * @var string|null |
||
63 | */ |
||
64 | private $codeFournisseur; |
||
65 | |||
66 | /** |
||
67 | * Code livraison. |
||
68 | * |
||
69 | * @var string|null |
||
70 | */ |
||
71 | private $codeLivraison; |
||
72 | |||
73 | /** |
||
74 | * Code officiel commune. |
||
75 | * |
||
76 | * @var string|null |
||
77 | */ |
||
78 | private $codeOfficielCommune; |
||
79 | |||
80 | /** |
||
81 | * Code officiel commune2. |
||
82 | * |
||
83 | * @var string|null |
||
84 | */ |
||
85 | private $codeOfficielCommune2; |
||
86 | |||
87 | /** |
||
88 | * Code postal. |
||
89 | * |
||
90 | * @var string|null |
||
91 | */ |
||
92 | private $codePostal; |
||
93 | |||
94 | /** |
||
95 | * Code postal2. |
||
96 | * |
||
97 | * @var string|null |
||
98 | */ |
||
99 | private $codePostal2; |
||
100 | |||
101 | /** |
||
102 | * Code reglement. |
||
103 | * |
||
104 | * @var string|null |
||
105 | */ |
||
106 | private $codeReglement; |
||
107 | |||
108 | /** |
||
109 | * Code tva. |
||
110 | * |
||
111 | * @var string|null |
||
112 | */ |
||
113 | private $codeTva; |
||
114 | |||
115 | /** |
||
116 | * Code ventil compta. |
||
117 | * |
||
118 | * @var string|null |
||
119 | */ |
||
120 | private $codeVentilCompta; |
||
121 | |||
122 | /** |
||
123 | * Complement. |
||
124 | * |
||
125 | * @var string|null |
||
126 | */ |
||
127 | private $complement; |
||
128 | |||
129 | /** |
||
130 | * Complement2. |
||
131 | * |
||
132 | * @var string|null |
||
133 | */ |
||
134 | private $complement2; |
||
135 | |||
136 | /** |
||
137 | * Date creation. |
||
138 | * |
||
139 | * @var DateTime|null |
||
140 | */ |
||
141 | private $dateCreation; |
||
142 | |||
143 | /** |
||
144 | * Date echeance. |
||
145 | * |
||
146 | * @var DateTime|null |
||
147 | */ |
||
148 | private $dateEcheance; |
||
149 | |||
150 | /** |
||
151 | * Date modification. |
||
152 | * |
||
153 | * @var DateTime|null |
||
154 | */ |
||
155 | private $dateModification; |
||
156 | |||
157 | /** |
||
158 | * Date piece. |
||
159 | * |
||
160 | * @var DateTime|null |
||
161 | */ |
||
162 | private $datePiece; |
||
163 | |||
164 | /** |
||
165 | * Date reception prevue. |
||
166 | * |
||
167 | * @var DateTime|null |
||
168 | */ |
||
169 | private $dateReceptionPrevue; |
||
170 | |||
171 | /** |
||
172 | * Echeance forcee. |
||
173 | * |
||
174 | * @var bool|null |
||
175 | */ |
||
176 | private $echeanceForcee; |
||
177 | |||
178 | /** |
||
179 | * Edition. |
||
180 | * |
||
181 | * @var int|null |
||
182 | */ |
||
183 | private $edition; |
||
184 | |||
185 | /** |
||
186 | * Facture euros. |
||
187 | * |
||
188 | * @var bool|null |
||
189 | */ |
||
190 | private $factureEuros; |
||
191 | |||
192 | /** |
||
193 | * Montant acompte. |
||
194 | * |
||
195 | * @var float|null |
||
196 | */ |
||
197 | private $montantAcompte; |
||
198 | |||
199 | /** |
||
200 | * Nb colis. |
||
201 | * |
||
202 | * @var int|null |
||
203 | */ |
||
204 | private $nbColis; |
||
205 | |||
206 | /** |
||
207 | * No piece. |
||
208 | * |
||
209 | * @var string|null |
||
210 | */ |
||
211 | private $noPiece; |
||
212 | |||
213 | /** |
||
214 | * Nom. |
||
215 | * |
||
216 | * @var string|null |
||
217 | */ |
||
218 | private $nom; |
||
219 | |||
220 | /** |
||
221 | * Nom2. |
||
222 | * |
||
223 | * @var string|null |
||
224 | */ |
||
225 | private $nom2; |
||
226 | |||
227 | /** |
||
228 | * Nom suite. |
||
229 | * |
||
230 | * @var string|null |
||
231 | */ |
||
232 | private $nomSuite; |
||
233 | |||
234 | /** |
||
235 | * Nom suite2. |
||
236 | * |
||
237 | * @var string|null |
||
238 | */ |
||
239 | private $nomSuite2; |
||
240 | |||
241 | /** |
||
242 | * Nom ville. |
||
243 | * |
||
244 | * @var string|null |
||
245 | */ |
||
246 | private $nomVille; |
||
247 | |||
248 | /** |
||
249 | * Nom ville2. |
||
250 | * |
||
251 | * @var string|null |
||
252 | */ |
||
253 | private $nomVille2; |
||
254 | |||
255 | /** |
||
256 | * Nom voie. |
||
257 | * |
||
258 | * @var string|null |
||
259 | */ |
||
260 | private $nomVoie; |
||
261 | |||
262 | /** |
||
263 | * Nom voie2. |
||
264 | * |
||
265 | * @var string|null |
||
266 | */ |
||
267 | private $nomVoie2; |
||
268 | |||
269 | /** |
||
270 | * Nombre echeances. |
||
271 | * |
||
272 | * @var int|null |
||
273 | */ |
||
274 | private $nombreEcheances; |
||
275 | |||
276 | /** |
||
277 | * Num voie. |
||
278 | * |
||
279 | * @var string|null |
||
280 | */ |
||
281 | private $numVoie; |
||
282 | |||
283 | /** |
||
284 | * Num voie2. |
||
285 | * |
||
286 | * @var string|null |
||
287 | */ |
||
288 | private $numVoie2; |
||
289 | |||
290 | /** |
||
291 | * Paiement depart le. |
||
292 | * |
||
293 | * @var int|null |
||
294 | */ |
||
295 | private $paiementDepartLe; |
||
296 | |||
297 | /** |
||
298 | * Paiement le. |
||
299 | * |
||
300 | * @var int|null |
||
301 | */ |
||
302 | private $paiementLe; |
||
303 | |||
304 | /** |
||
305 | * Paiement nombre de jours. |
||
306 | * |
||
307 | * @var int|null |
||
308 | */ |
||
309 | private $paiementNombreDeJours; |
||
310 | |||
311 | /** |
||
312 | * Periode preparation. |
||
313 | * |
||
314 | * @var DateTime|null |
||
315 | */ |
||
316 | private $periodePreparation; |
||
317 | |||
318 | /** |
||
319 | * Poids. |
||
320 | * |
||
321 | * @var float|null |
||
322 | */ |
||
323 | private $poids; |
||
324 | |||
325 | /** |
||
326 | * Reference1. |
||
327 | * |
||
328 | * @var string|null |
||
329 | */ |
||
330 | private $reference1; |
||
331 | |||
332 | /** |
||
333 | * Reference2. |
||
334 | * |
||
335 | * @var string|null |
||
336 | */ |
||
337 | private $reference2; |
||
338 | |||
339 | /** |
||
340 | * Reference3. |
||
341 | * |
||
342 | * @var string|null |
||
343 | */ |
||
344 | private $reference3; |
||
345 | |||
346 | /** |
||
347 | * Reference4. |
||
348 | * |
||
349 | * @var string|null |
||
350 | */ |
||
351 | private $reference4; |
||
352 | |||
353 | /** |
||
354 | * Remise pied. |
||
355 | * |
||
356 | * @var float|null |
||
357 | */ |
||
358 | private $remisePied; |
||
359 | |||
360 | /** |
||
361 | * Remise pied2. |
||
362 | * |
||
363 | * @var float|null |
||
364 | */ |
||
365 | private $remisePied2; |
||
366 | |||
367 | /** |
||
368 | * Remise pied3. |
||
369 | * |
||
370 | * @var float|null |
||
371 | */ |
||
372 | private $remisePied3; |
||
373 | |||
374 | /** |
||
375 | * Saisir adresse. |
||
376 | * |
||
377 | * @var bool|null |
||
378 | */ |
||
379 | private $saisirAdresse; |
||
380 | |||
381 | /** |
||
382 | * Saisir adresse livraison. |
||
383 | * |
||
384 | * @var bool|null |
||
385 | */ |
||
386 | private $saisirAdresseLivraison; |
||
387 | |||
388 | /** |
||
389 | * Soumis escompte. |
||
390 | * |
||
391 | * @var bool|null |
||
392 | */ |
||
393 | private $soumisEscompte; |
||
394 | |||
395 | /** |
||
396 | * Soumis taxe1. |
||
397 | * |
||
398 | * @var bool|null |
||
399 | */ |
||
400 | private $soumisTaxe1; |
||
401 | |||
402 | /** |
||
403 | * Soumis taxe2. |
||
404 | * |
||
405 | * @var bool|null |
||
406 | */ |
||
407 | private $soumisTaxe2; |
||
408 | |||
409 | /** |
||
410 | * Soumis taxe3. |
||
411 | * |
||
412 | * @var bool|null |
||
413 | */ |
||
414 | private $soumisTaxe3; |
||
415 | |||
416 | /** |
||
417 | * Taux devise. |
||
418 | * |
||
419 | * @var float|null |
||
420 | */ |
||
421 | private $tauxDevise; |
||
422 | |||
423 | /** |
||
424 | * Transfert. |
||
425 | * |
||
426 | * @var int|null |
||
427 | */ |
||
428 | private $transfert; |
||
429 | |||
430 | /** |
||
431 | * Transporteur. |
||
432 | * |
||
433 | * @var string|null |
||
434 | */ |
||
435 | private $transporteur; |
||
436 | |||
437 | /** |
||
438 | * Tx escompte achat. |
||
439 | * |
||
440 | * @var float|null |
||
441 | */ |
||
442 | private $txEscompteAchat; |
||
443 | |||
444 | |||
445 | /** |
||
446 | * Constructor. |
||
447 | */ |
||
448 | public function __construct() { |
||
451 | |||
452 | /** |
||
453 | * Get the btq. |
||
454 | * |
||
455 | * @return string|null Returns the btq. |
||
456 | */ |
||
457 | public function getBtq(): ?string{ |
||
460 | |||
461 | /** |
||
462 | * Get the btq2. |
||
463 | * |
||
464 | * @return string|null Returns the btq2. |
||
465 | */ |
||
466 | public function getBtq2(): ?string{ |
||
469 | |||
470 | /** |
||
471 | * Get the bureau distributeur. |
||
472 | * |
||
473 | * @return string|null Returns the bureau distributeur. |
||
474 | */ |
||
475 | public function getBureauDistributeur(): ?string{ |
||
478 | |||
479 | /** |
||
480 | * Get the bureau distributeur2. |
||
481 | * |
||
482 | * @return string|null Returns the bureau distributeur2. |
||
483 | */ |
||
484 | public function getBureauDistributeur2(): ?string{ |
||
487 | |||
488 | /** |
||
489 | * Get the code devise. |
||
490 | * |
||
491 | * @return string|null Returns the code devise. |
||
492 | */ |
||
493 | public function getCodeDevise(): ?string{ |
||
496 | |||
497 | /** |
||
498 | * Get the code fournisseur. |
||
499 | * |
||
500 | * @return string|null Returns the code fournisseur. |
||
501 | */ |
||
502 | public function getCodeFournisseur(): ?string{ |
||
505 | |||
506 | /** |
||
507 | * Get the code livraison. |
||
508 | * |
||
509 | * @return string|null Returns the code livraison. |
||
510 | */ |
||
511 | public function getCodeLivraison(): ?string{ |
||
514 | |||
515 | /** |
||
516 | * Get the code officiel commune. |
||
517 | * |
||
518 | * @return string|null Returns the code officiel commune. |
||
519 | */ |
||
520 | public function getCodeOfficielCommune(): ?string{ |
||
523 | |||
524 | /** |
||
525 | * Get the code officiel commune2. |
||
526 | * |
||
527 | * @return string|null Returns the code officiel commune2. |
||
528 | */ |
||
529 | public function getCodeOfficielCommune2(): ?string{ |
||
532 | |||
533 | /** |
||
534 | * Get the code postal. |
||
535 | * |
||
536 | * @return string|null Returns the code postal. |
||
537 | */ |
||
538 | public function getCodePostal(): ?string{ |
||
541 | |||
542 | /** |
||
543 | * Get the code postal2. |
||
544 | * |
||
545 | * @return string|null Returns the code postal2. |
||
546 | */ |
||
547 | public function getCodePostal2(): ?string{ |
||
550 | |||
551 | /** |
||
552 | * Get the code reglement. |
||
553 | * |
||
554 | * @return string|null Returns the code reglement. |
||
555 | */ |
||
556 | public function getCodeReglement(): ?string{ |
||
559 | |||
560 | /** |
||
561 | * Get the code tva. |
||
562 | * |
||
563 | * @return string|null Returns the code tva. |
||
564 | */ |
||
565 | public function getCodeTva(): ?string{ |
||
568 | |||
569 | /** |
||
570 | * Get the code ventil compta. |
||
571 | * |
||
572 | * @return string|null Returns the code ventil compta. |
||
573 | */ |
||
574 | public function getCodeVentilCompta(): ?string{ |
||
577 | |||
578 | /** |
||
579 | * Get the complement. |
||
580 | * |
||
581 | * @return string|null Returns the complement. |
||
582 | */ |
||
583 | public function getComplement(): ?string{ |
||
586 | |||
587 | /** |
||
588 | * Get the complement2. |
||
589 | * |
||
590 | * @return string|null Returns the complement2. |
||
591 | */ |
||
592 | public function getComplement2(): ?string{ |
||
595 | |||
596 | /** |
||
597 | * Get the date creation. |
||
598 | * |
||
599 | * @return DateTime|null Returns the date creation. |
||
600 | */ |
||
601 | public function getDateCreation(): ?DateTime{ |
||
604 | |||
605 | /** |
||
606 | * Get the date echeance. |
||
607 | * |
||
608 | * @return DateTime|null Returns the date echeance. |
||
609 | */ |
||
610 | public function getDateEcheance(): ?DateTime{ |
||
613 | |||
614 | /** |
||
615 | * Get the date modification. |
||
616 | * |
||
617 | * @return DateTime|null Returns the date modification. |
||
618 | */ |
||
619 | public function getDateModification(): ?DateTime{ |
||
622 | |||
623 | /** |
||
624 | * Get the date piece. |
||
625 | * |
||
626 | * @return DateTime|null Returns the date piece. |
||
627 | */ |
||
628 | public function getDatePiece(): ?DateTime{ |
||
631 | |||
632 | /** |
||
633 | * Get the date reception prevue. |
||
634 | * |
||
635 | * @return DateTime|null Returns the date reception prevue. |
||
636 | */ |
||
637 | public function getDateReceptionPrevue(): ?DateTime{ |
||
640 | |||
641 | /** |
||
642 | * Get the echeance forcee. |
||
643 | * |
||
644 | * @return bool|null Returns the echeance forcee. |
||
645 | */ |
||
646 | public function getEcheanceForcee(): ?bool{ |
||
649 | |||
650 | /** |
||
651 | * Get the edition. |
||
652 | * |
||
653 | * @return int|null Returns the edition. |
||
654 | */ |
||
655 | public function getEdition(): ?int{ |
||
658 | |||
659 | /** |
||
660 | * Get the facture euros. |
||
661 | * |
||
662 | * @return bool|null Returns the facture euros. |
||
663 | */ |
||
664 | public function getFactureEuros(): ?bool{ |
||
667 | |||
668 | /** |
||
669 | * Get the montant acompte. |
||
670 | * |
||
671 | * @return float|null Returns the montant acompte. |
||
672 | */ |
||
673 | public function getMontantAcompte(): ?float{ |
||
676 | |||
677 | /** |
||
678 | * Get the nb colis. |
||
679 | * |
||
680 | * @return int|null Returns the nb colis. |
||
681 | */ |
||
682 | public function getNbColis(): ?int{ |
||
685 | |||
686 | /** |
||
687 | * Get the no piece. |
||
688 | * |
||
689 | * @return string|null Returns the no piece. |
||
690 | */ |
||
691 | public function getNoPiece(): ?string{ |
||
694 | |||
695 | /** |
||
696 | * Get the nom. |
||
697 | * |
||
698 | * @return string|null Returns the nom. |
||
699 | */ |
||
700 | public function getNom(): ?string{ |
||
703 | |||
704 | /** |
||
705 | * Get the nom2. |
||
706 | * |
||
707 | * @return string|null Returns the nom2. |
||
708 | */ |
||
709 | public function getNom2(): ?string{ |
||
712 | |||
713 | /** |
||
714 | * Get the nom suite. |
||
715 | * |
||
716 | * @return string|null Returns the nom suite. |
||
717 | */ |
||
718 | public function getNomSuite(): ?string{ |
||
721 | |||
722 | /** |
||
723 | * Get the nom suite2. |
||
724 | * |
||
725 | * @return string|null Returns the nom suite2. |
||
726 | */ |
||
727 | public function getNomSuite2(): ?string{ |
||
730 | |||
731 | /** |
||
732 | * Get the nom ville. |
||
733 | * |
||
734 | * @return string|null Returns the nom ville. |
||
735 | */ |
||
736 | public function getNomVille(): ?string{ |
||
739 | |||
740 | /** |
||
741 | * Get the nom ville2. |
||
742 | * |
||
743 | * @return string|null Returns the nom ville2. |
||
744 | */ |
||
745 | public function getNomVille2(): ?string{ |
||
748 | |||
749 | /** |
||
750 | * Get the nom voie. |
||
751 | * |
||
752 | * @return string|null Returns the nom voie. |
||
753 | */ |
||
754 | public function getNomVoie(): ?string{ |
||
757 | |||
758 | /** |
||
759 | * Get the nom voie2. |
||
760 | * |
||
761 | * @return string|null Returns the nom voie2. |
||
762 | */ |
||
763 | public function getNomVoie2(): ?string{ |
||
766 | |||
767 | /** |
||
768 | * Get the nombre echeances. |
||
769 | * |
||
770 | * @return int|null Returns the nombre echeances. |
||
771 | */ |
||
772 | public function getNombreEcheances(): ?int{ |
||
775 | |||
776 | /** |
||
777 | * Get the num voie. |
||
778 | * |
||
779 | * @return string|null Returns the num voie. |
||
780 | */ |
||
781 | public function getNumVoie(): ?string{ |
||
784 | |||
785 | /** |
||
786 | * Get the num voie2. |
||
787 | * |
||
788 | * @return string|null Returns the num voie2. |
||
789 | */ |
||
790 | public function getNumVoie2(): ?string{ |
||
793 | |||
794 | /** |
||
795 | * Get the paiement depart le. |
||
796 | * |
||
797 | * @return int|null Returns the paiement depart le. |
||
798 | */ |
||
799 | public function getPaiementDepartLe(): ?int{ |
||
802 | |||
803 | /** |
||
804 | * Get the paiement le. |
||
805 | * |
||
806 | * @return int|null Returns the paiement le. |
||
807 | */ |
||
808 | public function getPaiementLe(): ?int{ |
||
811 | |||
812 | /** |
||
813 | * Get the paiement nombre de jours. |
||
814 | * |
||
815 | * @return int|null Returns the paiement nombre de jours. |
||
816 | */ |
||
817 | public function getPaiementNombreDeJours(): ?int{ |
||
820 | |||
821 | /** |
||
822 | * Get the periode preparation. |
||
823 | * |
||
824 | * @return DateTime|null Returns the periode preparation. |
||
825 | */ |
||
826 | public function getPeriodePreparation(): ?DateTime{ |
||
829 | |||
830 | /** |
||
831 | * Get the poids. |
||
832 | * |
||
833 | * @return float|null Returns the poids. |
||
834 | */ |
||
835 | public function getPoids(): ?float{ |
||
838 | |||
839 | /** |
||
840 | * Get the reference1. |
||
841 | * |
||
842 | * @return string|null Returns the reference1. |
||
843 | */ |
||
844 | public function getReference1(): ?string{ |
||
847 | |||
848 | /** |
||
849 | * Get the reference2. |
||
850 | * |
||
851 | * @return string|null Returns the reference2. |
||
852 | */ |
||
853 | public function getReference2(): ?string{ |
||
856 | |||
857 | /** |
||
858 | * Get the reference3. |
||
859 | * |
||
860 | * @return string|null Returns the reference3. |
||
861 | */ |
||
862 | public function getReference3(): ?string{ |
||
865 | |||
866 | /** |
||
867 | * Get the reference4. |
||
868 | * |
||
869 | * @return string|null Returns the reference4. |
||
870 | */ |
||
871 | public function getReference4(): ?string{ |
||
874 | |||
875 | /** |
||
876 | * Get the remise pied. |
||
877 | * |
||
878 | * @return float|null Returns the remise pied. |
||
879 | */ |
||
880 | public function getRemisePied(): ?float{ |
||
883 | |||
884 | /** |
||
885 | * Get the remise pied2. |
||
886 | * |
||
887 | * @return float|null Returns the remise pied2. |
||
888 | */ |
||
889 | public function getRemisePied2(): ?float{ |
||
892 | |||
893 | /** |
||
894 | * Get the remise pied3. |
||
895 | * |
||
896 | * @return float|null Returns the remise pied3. |
||
897 | */ |
||
898 | public function getRemisePied3(): ?float{ |
||
901 | |||
902 | /** |
||
903 | * Get the saisir adresse. |
||
904 | * |
||
905 | * @return bool|null Returns the saisir adresse. |
||
906 | */ |
||
907 | public function getSaisirAdresse(): ?bool{ |
||
910 | |||
911 | /** |
||
912 | * Get the saisir adresse livraison. |
||
913 | * |
||
914 | * @return bool|null Returns the saisir adresse livraison. |
||
915 | */ |
||
916 | public function getSaisirAdresseLivraison(): ?bool{ |
||
919 | |||
920 | /** |
||
921 | * Get the soumis escompte. |
||
922 | * |
||
923 | * @return bool|null Returns the soumis escompte. |
||
924 | */ |
||
925 | public function getSoumisEscompte(): ?bool{ |
||
928 | |||
929 | /** |
||
930 | * Get the soumis taxe1. |
||
931 | * |
||
932 | * @return bool|null Returns the soumis taxe1. |
||
933 | */ |
||
934 | public function getSoumisTaxe1(): ?bool{ |
||
937 | |||
938 | /** |
||
939 | * Get the soumis taxe2. |
||
940 | * |
||
941 | * @return bool|null Returns the soumis taxe2. |
||
942 | */ |
||
943 | public function getSoumisTaxe2(): ?bool{ |
||
946 | |||
947 | /** |
||
948 | * Get the soumis taxe3. |
||
949 | * |
||
950 | * @return bool|null Returns the soumis taxe3. |
||
951 | */ |
||
952 | public function getSoumisTaxe3(): ?bool{ |
||
955 | |||
956 | /** |
||
957 | * Get the taux devise. |
||
958 | * |
||
959 | * @return float|null Returns the taux devise. |
||
960 | */ |
||
961 | public function getTauxDevise(): ?float{ |
||
964 | |||
965 | /** |
||
966 | * Get the transfert. |
||
967 | * |
||
968 | * @return int|null Returns the transfert. |
||
969 | */ |
||
970 | public function getTransfert(): ?int{ |
||
973 | |||
974 | /** |
||
975 | * Get the transporteur. |
||
976 | * |
||
977 | * @return string|null Returns the transporteur. |
||
978 | */ |
||
979 | public function getTransporteur(): ?string{ |
||
982 | |||
983 | /** |
||
984 | * Get the tx escompte achat. |
||
985 | * |
||
986 | * @return float|null Returns the tx escompte achat. |
||
987 | */ |
||
988 | public function getTxEscompteAchat(): ?float{ |
||
991 | |||
992 | /** |
||
993 | * Set the btq. |
||
994 | * |
||
995 | * @param string|null $btq The btq. |
||
996 | * @return CdeFournisseurEntete Returns this Cde fournisseur entete. |
||
997 | */ |
||
998 | public function setBtq(?string $btq): CdeFournisseurEntete { |
||
1002 | |||
1003 | /** |
||
1004 | * Set the btq2. |
||
1005 | * |
||
1006 | * @param string|null $btq2 The btq2. |
||
1007 | * @return CdeFournisseurEntete Returns this Cde fournisseur entete. |
||
1008 | */ |
||
1009 | public function setBtq2(?string $btq2): CdeFournisseurEntete { |
||
1013 | |||
1014 | /** |
||
1015 | * Set the bureau distributeur. |
||
1016 | * |
||
1017 | * @param string|null $bureauDistributeur The bureau distributeur. |
||
1018 | * @return CdeFournisseurEntete Returns this Cde fournisseur entete. |
||
1019 | */ |
||
1020 | public function setBureauDistributeur(?string $bureauDistributeur): CdeFournisseurEntete { |
||
1024 | |||
1025 | /** |
||
1026 | * Set the bureau distributeur2. |
||
1027 | * |
||
1028 | * @param string|null $bureauDistributeur2 The bureau distributeur2. |
||
1029 | * @return CdeFournisseurEntete Returns this Cde fournisseur entete. |
||
1030 | */ |
||
1031 | public function setBureauDistributeur2(?string $bureauDistributeur2): CdeFournisseurEntete { |
||
1035 | |||
1036 | /** |
||
1037 | * Set the code devise. |
||
1038 | * |
||
1039 | * @param string|null $codeDevise The code devise. |
||
1040 | * @return CdeFournisseurEntete Returns this Cde fournisseur entete. |
||
1041 | */ |
||
1042 | public function setCodeDevise(?string $codeDevise): CdeFournisseurEntete { |
||
1046 | |||
1047 | /** |
||
1048 | * Set the code fournisseur. |
||
1049 | * |
||
1050 | * @param string|null $codeFournisseur The code fournisseur. |
||
1051 | * @return CdeFournisseurEntete Returns this Cde fournisseur entete. |
||
1052 | */ |
||
1053 | public function setCodeFournisseur(?string $codeFournisseur): CdeFournisseurEntete { |
||
1057 | |||
1058 | /** |
||
1059 | * Set the code livraison. |
||
1060 | * |
||
1061 | * @param string|null $codeLivraison The code livraison. |
||
1062 | * @return CdeFournisseurEntete Returns this Cde fournisseur entete. |
||
1063 | */ |
||
1064 | public function setCodeLivraison(?string $codeLivraison): CdeFournisseurEntete { |
||
1068 | |||
1069 | /** |
||
1070 | * Set the code officiel commune. |
||
1071 | * |
||
1072 | * @param string|null $codeOfficielCommune The code officiel commune. |
||
1073 | * @return CdeFournisseurEntete Returns this Cde fournisseur entete. |
||
1074 | */ |
||
1075 | public function setCodeOfficielCommune(?string $codeOfficielCommune): CdeFournisseurEntete { |
||
1079 | |||
1080 | /** |
||
1081 | * Set the code officiel commune2. |
||
1082 | * |
||
1083 | * @param string|null $codeOfficielCommune2 The code officiel commune2. |
||
1084 | * @return CdeFournisseurEntete Returns this Cde fournisseur entete. |
||
1085 | */ |
||
1086 | public function setCodeOfficielCommune2(?string $codeOfficielCommune2): CdeFournisseurEntete { |
||
1090 | |||
1091 | /** |
||
1092 | * Set the code postal. |
||
1093 | * |
||
1094 | * @param string|null $codePostal The code postal. |
||
1095 | * @return CdeFournisseurEntete Returns this Cde fournisseur entete. |
||
1096 | */ |
||
1097 | public function setCodePostal(?string $codePostal): CdeFournisseurEntete { |
||
1101 | |||
1102 | /** |
||
1103 | * Set the code postal2. |
||
1104 | * |
||
1105 | * @param string|null $codePostal2 The code postal2. |
||
1106 | * @return CdeFournisseurEntete Returns this Cde fournisseur entete. |
||
1107 | */ |
||
1108 | public function setCodePostal2(?string $codePostal2): CdeFournisseurEntete { |
||
1112 | |||
1113 | /** |
||
1114 | * Set the code reglement. |
||
1115 | * |
||
1116 | * @param string|null $codeReglement The code reglement. |
||
1117 | * @return CdeFournisseurEntete Returns this Cde fournisseur entete. |
||
1118 | */ |
||
1119 | public function setCodeReglement(?string $codeReglement): CdeFournisseurEntete { |
||
1123 | |||
1124 | /** |
||
1125 | * Set the code tva. |
||
1126 | * |
||
1127 | * @param string|null $codeTva The code tva. |
||
1128 | * @return CdeFournisseurEntete Returns this Cde fournisseur entete. |
||
1129 | */ |
||
1130 | public function setCodeTva(?string $codeTva): CdeFournisseurEntete { |
||
1134 | |||
1135 | /** |
||
1136 | * Set the code ventil compta. |
||
1137 | * |
||
1138 | * @param string|null $codeVentilCompta The code ventil compta. |
||
1139 | * @return CdeFournisseurEntete Returns this Cde fournisseur entete. |
||
1140 | */ |
||
1141 | public function setCodeVentilCompta(?string $codeVentilCompta): CdeFournisseurEntete { |
||
1145 | |||
1146 | /** |
||
1147 | * Set the complement. |
||
1148 | * |
||
1149 | * @param string|null $complement The complement. |
||
1150 | * @return CdeFournisseurEntete Returns this Cde fournisseur entete. |
||
1151 | */ |
||
1152 | public function setComplement(?string $complement): CdeFournisseurEntete { |
||
1156 | |||
1157 | /** |
||
1158 | * Set the complement2. |
||
1159 | * |
||
1160 | * @param string|null $complement2 The complement2. |
||
1161 | * @return CdeFournisseurEntete Returns this Cde fournisseur entete. |
||
1162 | */ |
||
1163 | public function setComplement2(?string $complement2): CdeFournisseurEntete { |
||
1167 | |||
1168 | /** |
||
1169 | * Set the date creation. |
||
1170 | * |
||
1171 | * @param DateTime|null $dateCreation The date creation. |
||
1172 | * @return CdeFournisseurEntete Returns this Cde fournisseur entete. |
||
1173 | */ |
||
1174 | public function setDateCreation(?DateTime $dateCreation): CdeFournisseurEntete { |
||
1178 | |||
1179 | /** |
||
1180 | * Set the date echeance. |
||
1181 | * |
||
1182 | * @param DateTime|null $dateEcheance The date echeance. |
||
1183 | * @return CdeFournisseurEntete Returns this Cde fournisseur entete. |
||
1184 | */ |
||
1185 | public function setDateEcheance(?DateTime $dateEcheance): CdeFournisseurEntete { |
||
1189 | |||
1190 | /** |
||
1191 | * Set the date modification. |
||
1192 | * |
||
1193 | * @param DateTime|null $dateModification The date modification. |
||
1194 | * @return CdeFournisseurEntete Returns this Cde fournisseur entete. |
||
1195 | */ |
||
1196 | public function setDateModification(?DateTime $dateModification): CdeFournisseurEntete { |
||
1200 | |||
1201 | /** |
||
1202 | * Set the date piece. |
||
1203 | * |
||
1204 | * @param DateTime|null $datePiece The date piece. |
||
1205 | * @return CdeFournisseurEntete Returns this Cde fournisseur entete. |
||
1206 | */ |
||
1207 | public function setDatePiece(?DateTime $datePiece): CdeFournisseurEntete { |
||
1211 | |||
1212 | /** |
||
1213 | * Set the date reception prevue. |
||
1214 | * |
||
1215 | * @param DateTime|null $dateReceptionPrevue The date reception prevue. |
||
1216 | * @return CdeFournisseurEntete Returns this Cde fournisseur entete. |
||
1217 | */ |
||
1218 | public function setDateReceptionPrevue(?DateTime $dateReceptionPrevue): CdeFournisseurEntete { |
||
1222 | |||
1223 | /** |
||
1224 | * Set the echeance forcee. |
||
1225 | * |
||
1226 | * @param bool|null $echeanceForcee The echeance forcee. |
||
1227 | * @return CdeFournisseurEntete Returns this Cde fournisseur entete. |
||
1228 | */ |
||
1229 | public function setEcheanceForcee(?bool $echeanceForcee): CdeFournisseurEntete { |
||
1233 | |||
1234 | /** |
||
1235 | * Set the edition. |
||
1236 | * |
||
1237 | * @param int|null $edition The edition. |
||
1238 | * @return CdeFournisseurEntete Returns this Cde fournisseur entete. |
||
1239 | */ |
||
1240 | public function setEdition(?int $edition): CdeFournisseurEntete { |
||
1244 | |||
1245 | /** |
||
1246 | * Set the facture euros. |
||
1247 | * |
||
1248 | * @param bool|null $factureEuros The facture euros. |
||
1249 | * @return CdeFournisseurEntete Returns this Cde fournisseur entete. |
||
1250 | */ |
||
1251 | public function setFactureEuros(?bool $factureEuros): CdeFournisseurEntete { |
||
1255 | |||
1256 | /** |
||
1257 | * Set the montant acompte. |
||
1258 | * |
||
1259 | * @param float|null $montantAcompte The montant acompte. |
||
1260 | * @return CdeFournisseurEntete Returns this Cde fournisseur entete. |
||
1261 | */ |
||
1262 | public function setMontantAcompte(?float $montantAcompte): CdeFournisseurEntete { |
||
1266 | |||
1267 | /** |
||
1268 | * Set the nb colis. |
||
1269 | * |
||
1270 | * @param int|null $nbColis The nb colis. |
||
1271 | * @return CdeFournisseurEntete Returns this Cde fournisseur entete. |
||
1272 | */ |
||
1273 | public function setNbColis(?int $nbColis): CdeFournisseurEntete { |
||
1277 | |||
1278 | /** |
||
1279 | * Set the no piece. |
||
1280 | * |
||
1281 | * @param string|null $noPiece The no piece. |
||
1282 | * @return CdeFournisseurEntete Returns this Cde fournisseur entete. |
||
1283 | */ |
||
1284 | public function setNoPiece(?string $noPiece): CdeFournisseurEntete { |
||
1288 | |||
1289 | /** |
||
1290 | * Set the nom. |
||
1291 | * |
||
1292 | * @param string|null $nom The nom. |
||
1293 | * @return CdeFournisseurEntete Returns this Cde fournisseur entete. |
||
1294 | */ |
||
1295 | public function setNom(?string $nom): CdeFournisseurEntete { |
||
1299 | |||
1300 | /** |
||
1301 | * Set the nom2. |
||
1302 | * |
||
1303 | * @param string|null $nom2 The nom2. |
||
1304 | * @return CdeFournisseurEntete Returns this Cde fournisseur entete. |
||
1305 | */ |
||
1306 | public function setNom2(?string $nom2): CdeFournisseurEntete { |
||
1310 | |||
1311 | /** |
||
1312 | * Set the nom suite. |
||
1313 | * |
||
1314 | * @param string|null $nomSuite The nom suite. |
||
1315 | * @return CdeFournisseurEntete Returns this Cde fournisseur entete. |
||
1316 | */ |
||
1317 | public function setNomSuite(?string $nomSuite): CdeFournisseurEntete { |
||
1321 | |||
1322 | /** |
||
1323 | * Set the nom suite2. |
||
1324 | * |
||
1325 | * @param string|null $nomSuite2 The nom suite2. |
||
1326 | * @return CdeFournisseurEntete Returns this Cde fournisseur entete. |
||
1327 | */ |
||
1328 | public function setNomSuite2(?string $nomSuite2): CdeFournisseurEntete { |
||
1332 | |||
1333 | /** |
||
1334 | * Set the nom ville. |
||
1335 | * |
||
1336 | * @param string|null $nomVille The nom ville. |
||
1337 | * @return CdeFournisseurEntete Returns this Cde fournisseur entete. |
||
1338 | */ |
||
1339 | public function setNomVille(?string $nomVille): CdeFournisseurEntete { |
||
1343 | |||
1344 | /** |
||
1345 | * Set the nom ville2. |
||
1346 | * |
||
1347 | * @param string|null $nomVille2 The nom ville2. |
||
1348 | * @return CdeFournisseurEntete Returns this Cde fournisseur entete. |
||
1349 | */ |
||
1350 | public function setNomVille2(?string $nomVille2): CdeFournisseurEntete { |
||
1354 | |||
1355 | /** |
||
1356 | * Set the nom voie. |
||
1357 | * |
||
1358 | * @param string|null $nomVoie The nom voie. |
||
1359 | * @return CdeFournisseurEntete Returns this Cde fournisseur entete. |
||
1360 | */ |
||
1361 | public function setNomVoie(?string $nomVoie): CdeFournisseurEntete { |
||
1365 | |||
1366 | /** |
||
1367 | * Set the nom voie2. |
||
1368 | * |
||
1369 | * @param string|null $nomVoie2 The nom voie2. |
||
1370 | * @return CdeFournisseurEntete Returns this Cde fournisseur entete. |
||
1371 | */ |
||
1372 | public function setNomVoie2(?string $nomVoie2): CdeFournisseurEntete { |
||
1376 | |||
1377 | /** |
||
1378 | * Set the nombre echeances. |
||
1379 | * |
||
1380 | * @param int|null $nombreEcheances The nombre echeances. |
||
1381 | * @return CdeFournisseurEntete Returns this Cde fournisseur entete. |
||
1382 | */ |
||
1383 | public function setNombreEcheances(?int $nombreEcheances): CdeFournisseurEntete { |
||
1387 | |||
1388 | /** |
||
1389 | * Set the num voie. |
||
1390 | * |
||
1391 | * @param string|null $numVoie The num voie. |
||
1392 | * @return CdeFournisseurEntete Returns this Cde fournisseur entete. |
||
1393 | */ |
||
1394 | public function setNumVoie(?string $numVoie): CdeFournisseurEntete { |
||
1398 | |||
1399 | /** |
||
1400 | * Set the num voie2. |
||
1401 | * |
||
1402 | * @param string|null $numVoie2 The num voie2. |
||
1403 | * @return CdeFournisseurEntete Returns this Cde fournisseur entete. |
||
1404 | */ |
||
1405 | public function setNumVoie2(?string $numVoie2): CdeFournisseurEntete { |
||
1409 | |||
1410 | /** |
||
1411 | * Set the paiement depart le. |
||
1412 | * |
||
1413 | * @param int|null $paiementDepartLe The paiement depart le. |
||
1414 | * @return CdeFournisseurEntete Returns this Cde fournisseur entete. |
||
1415 | */ |
||
1416 | public function setPaiementDepartLe(?int $paiementDepartLe): CdeFournisseurEntete { |
||
1420 | |||
1421 | /** |
||
1422 | * Set the paiement le. |
||
1423 | * |
||
1424 | * @param int|null $paiementLe The paiement le. |
||
1425 | * @return CdeFournisseurEntete Returns this Cde fournisseur entete. |
||
1426 | */ |
||
1427 | public function setPaiementLe(?int $paiementLe): CdeFournisseurEntete { |
||
1431 | |||
1432 | /** |
||
1433 | * Set the paiement nombre de jours. |
||
1434 | * |
||
1435 | * @param int|null $paiementNombreDeJours The paiement nombre de jours. |
||
1436 | * @return CdeFournisseurEntete Returns this Cde fournisseur entete. |
||
1437 | */ |
||
1438 | public function setPaiementNombreDeJours(?int $paiementNombreDeJours): CdeFournisseurEntete { |
||
1442 | |||
1443 | /** |
||
1444 | * Set the periode preparation. |
||
1445 | * |
||
1446 | * @param DateTime|null $periodePreparation The periode preparation. |
||
1447 | * @return CdeFournisseurEntete Returns this Cde fournisseur entete. |
||
1448 | */ |
||
1449 | public function setPeriodePreparation(?DateTime $periodePreparation): CdeFournisseurEntete { |
||
1453 | |||
1454 | /** |
||
1455 | * Set the poids. |
||
1456 | * |
||
1457 | * @param float|null $poids The poids. |
||
1458 | * @return CdeFournisseurEntete Returns this Cde fournisseur entete. |
||
1459 | */ |
||
1460 | public function setPoids(?float $poids): CdeFournisseurEntete { |
||
1464 | |||
1465 | /** |
||
1466 | * Set the reference1. |
||
1467 | * |
||
1468 | * @param string|null $reference1 The reference1. |
||
1469 | * @return CdeFournisseurEntete Returns this Cde fournisseur entete. |
||
1470 | */ |
||
1471 | public function setReference1(?string $reference1): CdeFournisseurEntete { |
||
1475 | |||
1476 | /** |
||
1477 | * Set the reference2. |
||
1478 | * |
||
1479 | * @param string|null $reference2 The reference2. |
||
1480 | * @return CdeFournisseurEntete Returns this Cde fournisseur entete. |
||
1481 | */ |
||
1482 | public function setReference2(?string $reference2): CdeFournisseurEntete { |
||
1486 | |||
1487 | /** |
||
1488 | * Set the reference3. |
||
1489 | * |
||
1490 | * @param string|null $reference3 The reference3. |
||
1491 | * @return CdeFournisseurEntete Returns this Cde fournisseur entete. |
||
1492 | */ |
||
1493 | public function setReference3(?string $reference3): CdeFournisseurEntete { |
||
1497 | |||
1498 | /** |
||
1499 | * Set the reference4. |
||
1500 | * |
||
1501 | * @param string|null $reference4 The reference4. |
||
1502 | * @return CdeFournisseurEntete Returns this Cde fournisseur entete. |
||
1503 | */ |
||
1504 | public function setReference4(?string $reference4): CdeFournisseurEntete { |
||
1508 | |||
1509 | /** |
||
1510 | * Set the remise pied. |
||
1511 | * |
||
1512 | * @param float|null $remisePied The remise pied. |
||
1513 | * @return CdeFournisseurEntete Returns this Cde fournisseur entete. |
||
1514 | */ |
||
1515 | public function setRemisePied(?float $remisePied): CdeFournisseurEntete { |
||
1519 | |||
1520 | /** |
||
1521 | * Set the remise pied2. |
||
1522 | * |
||
1523 | * @param float|null $remisePied2 The remise pied2. |
||
1524 | * @return CdeFournisseurEntete Returns this Cde fournisseur entete. |
||
1525 | */ |
||
1526 | public function setRemisePied2(?float $remisePied2): CdeFournisseurEntete { |
||
1530 | |||
1531 | /** |
||
1532 | * Set the remise pied3. |
||
1533 | * |
||
1534 | * @param float|null $remisePied3 The remise pied3. |
||
1535 | * @return CdeFournisseurEntete Returns this Cde fournisseur entete. |
||
1536 | */ |
||
1537 | public function setRemisePied3(?float $remisePied3): CdeFournisseurEntete { |
||
1541 | |||
1542 | /** |
||
1543 | * Set the saisir adresse. |
||
1544 | * |
||
1545 | * @param bool|null $saisirAdresse The saisir adresse. |
||
1546 | * @return CdeFournisseurEntete Returns this Cde fournisseur entete. |
||
1547 | */ |
||
1548 | public function setSaisirAdresse(?bool $saisirAdresse): CdeFournisseurEntete { |
||
1552 | |||
1553 | /** |
||
1554 | * Set the saisir adresse livraison. |
||
1555 | * |
||
1556 | * @param bool|null $saisirAdresseLivraison The saisir adresse livraison. |
||
1557 | * @return CdeFournisseurEntete Returns this Cde fournisseur entete. |
||
1558 | */ |
||
1559 | public function setSaisirAdresseLivraison(?bool $saisirAdresseLivraison): CdeFournisseurEntete { |
||
1563 | |||
1564 | /** |
||
1565 | * Set the soumis escompte. |
||
1566 | * |
||
1567 | * @param bool|null $soumisEscompte The soumis escompte. |
||
1568 | * @return CdeFournisseurEntete Returns this Cde fournisseur entete. |
||
1569 | */ |
||
1570 | public function setSoumisEscompte(?bool $soumisEscompte): CdeFournisseurEntete { |
||
1574 | |||
1575 | /** |
||
1576 | * Set the soumis taxe1. |
||
1577 | * |
||
1578 | * @param bool|null $soumisTaxe1 The soumis taxe1. |
||
1579 | * @return CdeFournisseurEntete Returns this Cde fournisseur entete. |
||
1580 | */ |
||
1581 | public function setSoumisTaxe1(?bool $soumisTaxe1): CdeFournisseurEntete { |
||
1585 | |||
1586 | /** |
||
1587 | * Set the soumis taxe2. |
||
1588 | * |
||
1589 | * @param bool|null $soumisTaxe2 The soumis taxe2. |
||
1590 | * @return CdeFournisseurEntete Returns this Cde fournisseur entete. |
||
1591 | */ |
||
1592 | public function setSoumisTaxe2(?bool $soumisTaxe2): CdeFournisseurEntete { |
||
1596 | |||
1597 | /** |
||
1598 | * Set the soumis taxe3. |
||
1599 | * |
||
1600 | * @param bool|null $soumisTaxe3 The soumis taxe3. |
||
1601 | * @return CdeFournisseurEntete Returns this Cde fournisseur entete. |
||
1602 | */ |
||
1603 | public function setSoumisTaxe3(?bool $soumisTaxe3): CdeFournisseurEntete { |
||
1607 | |||
1608 | /** |
||
1609 | * Set the taux devise. |
||
1610 | * |
||
1611 | * @param float|null $tauxDevise The taux devise. |
||
1612 | * @return CdeFournisseurEntete Returns this Cde fournisseur entete. |
||
1613 | */ |
||
1614 | public function setTauxDevise(?float $tauxDevise): CdeFournisseurEntete { |
||
1618 | |||
1619 | /** |
||
1620 | * Set the transfert. |
||
1621 | * |
||
1622 | * @param int|null $transfert The transfert. |
||
1623 | * @return CdeFournisseurEntete Returns this Cde fournisseur entete. |
||
1624 | */ |
||
1625 | public function setTransfert(?int $transfert): CdeFournisseurEntete { |
||
1629 | |||
1630 | /** |
||
1631 | * Set the transporteur. |
||
1632 | * |
||
1633 | * @param string|null $transporteur The transporteur. |
||
1634 | * @return CdeFournisseurEntete Returns this Cde fournisseur entete. |
||
1635 | */ |
||
1636 | public function setTransporteur(?string $transporteur): CdeFournisseurEntete { |
||
1640 | |||
1641 | /** |
||
1642 | * Set the tx escompte achat. |
||
1643 | * |
||
1644 | * @param float|null $txEscompteAchat The tx escompte achat. |
||
1645 | * @return CdeFournisseurEntete Returns this Cde fournisseur entete. |
||
1646 | */ |
||
1647 | public function setTxEscompteAchat(?float $txEscompteAchat): CdeFournisseurEntete { |
||
1651 | } |
||
1652 |