Complex classes like BrEntete 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 BrEntete, and based on these observations, apply Extract Interface, too.
1 | <?php |
||
22 | class BrEntete { |
||
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 facture fournisseur. |
||
152 | * |
||
153 | * @var DateTime|null |
||
154 | */ |
||
155 | private $dateFactureFournisseur; |
||
156 | |||
157 | /** |
||
158 | * Date modification. |
||
159 | * |
||
160 | * @var DateTime|null |
||
161 | */ |
||
162 | private $dateModification; |
||
163 | |||
164 | /** |
||
165 | * Date piece. |
||
166 | * |
||
167 | * @var DateTime|null |
||
168 | */ |
||
169 | private $datePiece; |
||
170 | |||
171 | /** |
||
172 | * Date reception prevue. |
||
173 | * |
||
174 | * @var DateTime|null |
||
175 | */ |
||
176 | private $dateReceptionPrevue; |
||
177 | |||
178 | /** |
||
179 | * Echeance forcee. |
||
180 | * |
||
181 | * @var bool|null |
||
182 | */ |
||
183 | private $echeanceForcee; |
||
184 | |||
185 | /** |
||
186 | * Edition. |
||
187 | * |
||
188 | * @var int|null |
||
189 | */ |
||
190 | private $edition; |
||
191 | |||
192 | /** |
||
193 | * Facture euros. |
||
194 | * |
||
195 | * @var bool|null |
||
196 | */ |
||
197 | private $factureEuros; |
||
198 | |||
199 | /** |
||
200 | * Montant acompte. |
||
201 | * |
||
202 | * @var float|null |
||
203 | */ |
||
204 | private $montantAcompte; |
||
205 | |||
206 | /** |
||
207 | * Nb colis. |
||
208 | * |
||
209 | * @var int|null |
||
210 | */ |
||
211 | private $nbColis; |
||
212 | |||
213 | /** |
||
214 | * No piece. |
||
215 | * |
||
216 | * @var string|null |
||
217 | */ |
||
218 | private $noPiece; |
||
219 | |||
220 | /** |
||
221 | * Nom. |
||
222 | * |
||
223 | * @var string|null |
||
224 | */ |
||
225 | private $nom; |
||
226 | |||
227 | /** |
||
228 | * Nom2. |
||
229 | * |
||
230 | * @var string|null |
||
231 | */ |
||
232 | private $nom2; |
||
233 | |||
234 | /** |
||
235 | * Nom suite. |
||
236 | * |
||
237 | * @var string|null |
||
238 | */ |
||
239 | private $nomSuite; |
||
240 | |||
241 | /** |
||
242 | * Nom suite2. |
||
243 | * |
||
244 | * @var string|null |
||
245 | */ |
||
246 | private $nomSuite2; |
||
247 | |||
248 | /** |
||
249 | * Nom ville. |
||
250 | * |
||
251 | * @var string|null |
||
252 | */ |
||
253 | private $nomVille; |
||
254 | |||
255 | /** |
||
256 | * Nom ville2. |
||
257 | * |
||
258 | * @var string|null |
||
259 | */ |
||
260 | private $nomVille2; |
||
261 | |||
262 | /** |
||
263 | * Nom voie. |
||
264 | * |
||
265 | * @var string|null |
||
266 | */ |
||
267 | private $nomVoie; |
||
268 | |||
269 | /** |
||
270 | * Nom voie2. |
||
271 | * |
||
272 | * @var string|null |
||
273 | */ |
||
274 | private $nomVoie2; |
||
275 | |||
276 | /** |
||
277 | * Nombre echeances. |
||
278 | * |
||
279 | * @var int|null |
||
280 | */ |
||
281 | private $nombreEcheances; |
||
282 | |||
283 | /** |
||
284 | * Num voie. |
||
285 | * |
||
286 | * @var string|null |
||
287 | */ |
||
288 | private $numVoie; |
||
289 | |||
290 | /** |
||
291 | * Num voie2. |
||
292 | * |
||
293 | * @var string|null |
||
294 | */ |
||
295 | private $numVoie2; |
||
296 | |||
297 | /** |
||
298 | * Numero facture fournisseur. |
||
299 | * |
||
300 | * @var string|null |
||
301 | */ |
||
302 | private $numeroFactureFournisseur; |
||
303 | |||
304 | /** |
||
305 | * Paiement depart le. |
||
306 | * |
||
307 | * @var int|null |
||
308 | */ |
||
309 | private $paiementDepartLe; |
||
310 | |||
311 | /** |
||
312 | * Paiement le. |
||
313 | * |
||
314 | * @var int|null |
||
315 | */ |
||
316 | private $paiementLe; |
||
317 | |||
318 | /** |
||
319 | * Paiement nombre de jours. |
||
320 | * |
||
321 | * @var int|null |
||
322 | */ |
||
323 | private $paiementNombreDeJours; |
||
324 | |||
325 | /** |
||
326 | * Poids. |
||
327 | * |
||
328 | * @var float|null |
||
329 | */ |
||
330 | private $poids; |
||
331 | |||
332 | /** |
||
333 | * Reference1. |
||
334 | * |
||
335 | * @var string|null |
||
336 | */ |
||
337 | private $reference1; |
||
338 | |||
339 | /** |
||
340 | * Reference2. |
||
341 | * |
||
342 | * @var string|null |
||
343 | */ |
||
344 | private $reference2; |
||
345 | |||
346 | /** |
||
347 | * Reference3. |
||
348 | * |
||
349 | * @var string|null |
||
350 | */ |
||
351 | private $reference3; |
||
352 | |||
353 | /** |
||
354 | * Reference4. |
||
355 | * |
||
356 | * @var string|null |
||
357 | */ |
||
358 | private $reference4; |
||
359 | |||
360 | /** |
||
361 | * Remise pied. |
||
362 | * |
||
363 | * @var float|null |
||
364 | */ |
||
365 | private $remisePied; |
||
366 | |||
367 | /** |
||
368 | * Remise pied2. |
||
369 | * |
||
370 | * @var float|null |
||
371 | */ |
||
372 | private $remisePied2; |
||
373 | |||
374 | /** |
||
375 | * Remise pied3. |
||
376 | * |
||
377 | * @var float|null |
||
378 | */ |
||
379 | private $remisePied3; |
||
380 | |||
381 | /** |
||
382 | * Saisir adresse. |
||
383 | * |
||
384 | * @var bool|null |
||
385 | */ |
||
386 | private $saisirAdresse; |
||
387 | |||
388 | /** |
||
389 | * Saisir adresse livraison. |
||
390 | * |
||
391 | * @var bool|null |
||
392 | */ |
||
393 | private $saisirAdresseLivraison; |
||
394 | |||
395 | /** |
||
396 | * Soumis escompte. |
||
397 | * |
||
398 | * @var bool|null |
||
399 | */ |
||
400 | private $soumisEscompte; |
||
401 | |||
402 | /** |
||
403 | * Soumis taxe1. |
||
404 | * |
||
405 | * @var bool|null |
||
406 | */ |
||
407 | private $soumisTaxe1; |
||
408 | |||
409 | /** |
||
410 | * Soumis taxe2. |
||
411 | * |
||
412 | * @var bool|null |
||
413 | */ |
||
414 | private $soumisTaxe2; |
||
415 | |||
416 | /** |
||
417 | * Soumis taxe3. |
||
418 | * |
||
419 | * @var bool|null |
||
420 | */ |
||
421 | private $soumisTaxe3; |
||
422 | |||
423 | /** |
||
424 | * Taux devise. |
||
425 | * |
||
426 | * @var float|null |
||
427 | */ |
||
428 | private $tauxDevise; |
||
429 | |||
430 | /** |
||
431 | * Transfert. |
||
432 | * |
||
433 | * @var int|null |
||
434 | */ |
||
435 | private $transfert; |
||
436 | |||
437 | /** |
||
438 | * Transporteur. |
||
439 | * |
||
440 | * @var string|null |
||
441 | */ |
||
442 | private $transporteur; |
||
443 | |||
444 | /** |
||
445 | * Tx escompte achat. |
||
446 | * |
||
447 | * @var float|null |
||
448 | */ |
||
449 | private $txEscompteAchat; |
||
450 | |||
451 | |||
452 | /** |
||
453 | * Constructor. |
||
454 | */ |
||
455 | public function __construct() { |
||
458 | |||
459 | /** |
||
460 | * Get the btq. |
||
461 | * |
||
462 | * @return string|null Returns the btq. |
||
463 | */ |
||
464 | public function getBtq(): ?string{ |
||
467 | |||
468 | /** |
||
469 | * Get the btq2. |
||
470 | * |
||
471 | * @return string|null Returns the btq2. |
||
472 | */ |
||
473 | public function getBtq2(): ?string{ |
||
476 | |||
477 | /** |
||
478 | * Get the bureau distributeur. |
||
479 | * |
||
480 | * @return string|null Returns the bureau distributeur. |
||
481 | */ |
||
482 | public function getBureauDistributeur(): ?string{ |
||
485 | |||
486 | /** |
||
487 | * Get the bureau distributeur2. |
||
488 | * |
||
489 | * @return string|null Returns the bureau distributeur2. |
||
490 | */ |
||
491 | public function getBureauDistributeur2(): ?string{ |
||
494 | |||
495 | /** |
||
496 | * Get the code devise. |
||
497 | * |
||
498 | * @return string|null Returns the code devise. |
||
499 | */ |
||
500 | public function getCodeDevise(): ?string{ |
||
503 | |||
504 | /** |
||
505 | * Get the code fournisseur. |
||
506 | * |
||
507 | * @return string|null Returns the code fournisseur. |
||
508 | */ |
||
509 | public function getCodeFournisseur(): ?string{ |
||
512 | |||
513 | /** |
||
514 | * Get the code livraison. |
||
515 | * |
||
516 | * @return string|null Returns the code livraison. |
||
517 | */ |
||
518 | public function getCodeLivraison(): ?string{ |
||
521 | |||
522 | /** |
||
523 | * Get the code officiel commune. |
||
524 | * |
||
525 | * @return string|null Returns the code officiel commune. |
||
526 | */ |
||
527 | public function getCodeOfficielCommune(): ?string{ |
||
530 | |||
531 | /** |
||
532 | * Get the code officiel commune2. |
||
533 | * |
||
534 | * @return string|null Returns the code officiel commune2. |
||
535 | */ |
||
536 | public function getCodeOfficielCommune2(): ?string{ |
||
539 | |||
540 | /** |
||
541 | * Get the code postal. |
||
542 | * |
||
543 | * @return string|null Returns the code postal. |
||
544 | */ |
||
545 | public function getCodePostal(): ?string{ |
||
548 | |||
549 | /** |
||
550 | * Get the code postal2. |
||
551 | * |
||
552 | * @return string|null Returns the code postal2. |
||
553 | */ |
||
554 | public function getCodePostal2(): ?string{ |
||
557 | |||
558 | /** |
||
559 | * Get the code reglement. |
||
560 | * |
||
561 | * @return string|null Returns the code reglement. |
||
562 | */ |
||
563 | public function getCodeReglement(): ?string{ |
||
566 | |||
567 | /** |
||
568 | * Get the code tva. |
||
569 | * |
||
570 | * @return string|null Returns the code tva. |
||
571 | */ |
||
572 | public function getCodeTva(): ?string{ |
||
575 | |||
576 | /** |
||
577 | * Get the code ventil compta. |
||
578 | * |
||
579 | * @return string|null Returns the code ventil compta. |
||
580 | */ |
||
581 | public function getCodeVentilCompta(): ?string{ |
||
584 | |||
585 | /** |
||
586 | * Get the complement. |
||
587 | * |
||
588 | * @return string|null Returns the complement. |
||
589 | */ |
||
590 | public function getComplement(): ?string{ |
||
593 | |||
594 | /** |
||
595 | * Get the complement2. |
||
596 | * |
||
597 | * @return string|null Returns the complement2. |
||
598 | */ |
||
599 | public function getComplement2(): ?string{ |
||
602 | |||
603 | /** |
||
604 | * Get the date creation. |
||
605 | * |
||
606 | * @return DateTime|null Returns the date creation. |
||
607 | */ |
||
608 | public function getDateCreation(): ?DateTime{ |
||
611 | |||
612 | /** |
||
613 | * Get the date echeance. |
||
614 | * |
||
615 | * @return DateTime|null Returns the date echeance. |
||
616 | */ |
||
617 | public function getDateEcheance(): ?DateTime{ |
||
620 | |||
621 | /** |
||
622 | * Get the date facture fournisseur. |
||
623 | * |
||
624 | * @return DateTime|null Returns the date facture fournisseur. |
||
625 | */ |
||
626 | public function getDateFactureFournisseur(): ?DateTime{ |
||
629 | |||
630 | /** |
||
631 | * Get the date modification. |
||
632 | * |
||
633 | * @return DateTime|null Returns the date modification. |
||
634 | */ |
||
635 | public function getDateModification(): ?DateTime{ |
||
638 | |||
639 | /** |
||
640 | * Get the date piece. |
||
641 | * |
||
642 | * @return DateTime|null Returns the date piece. |
||
643 | */ |
||
644 | public function getDatePiece(): ?DateTime{ |
||
647 | |||
648 | /** |
||
649 | * Get the date reception prevue. |
||
650 | * |
||
651 | * @return DateTime|null Returns the date reception prevue. |
||
652 | */ |
||
653 | public function getDateReceptionPrevue(): ?DateTime{ |
||
656 | |||
657 | /** |
||
658 | * Get the echeance forcee. |
||
659 | * |
||
660 | * @return bool|null Returns the echeance forcee. |
||
661 | */ |
||
662 | public function getEcheanceForcee(): ?bool{ |
||
665 | |||
666 | /** |
||
667 | * Get the edition. |
||
668 | * |
||
669 | * @return int|null Returns the edition. |
||
670 | */ |
||
671 | public function getEdition(): ?int{ |
||
674 | |||
675 | /** |
||
676 | * Get the facture euros. |
||
677 | * |
||
678 | * @return bool|null Returns the facture euros. |
||
679 | */ |
||
680 | public function getFactureEuros(): ?bool{ |
||
683 | |||
684 | /** |
||
685 | * Get the montant acompte. |
||
686 | * |
||
687 | * @return float|null Returns the montant acompte. |
||
688 | */ |
||
689 | public function getMontantAcompte(): ?float{ |
||
692 | |||
693 | /** |
||
694 | * Get the nb colis. |
||
695 | * |
||
696 | * @return int|null Returns the nb colis. |
||
697 | */ |
||
698 | public function getNbColis(): ?int{ |
||
701 | |||
702 | /** |
||
703 | * Get the no piece. |
||
704 | * |
||
705 | * @return string|null Returns the no piece. |
||
706 | */ |
||
707 | public function getNoPiece(): ?string{ |
||
710 | |||
711 | /** |
||
712 | * Get the nom. |
||
713 | * |
||
714 | * @return string|null Returns the nom. |
||
715 | */ |
||
716 | public function getNom(): ?string{ |
||
719 | |||
720 | /** |
||
721 | * Get the nom2. |
||
722 | * |
||
723 | * @return string|null Returns the nom2. |
||
724 | */ |
||
725 | public function getNom2(): ?string{ |
||
728 | |||
729 | /** |
||
730 | * Get the nom suite. |
||
731 | * |
||
732 | * @return string|null Returns the nom suite. |
||
733 | */ |
||
734 | public function getNomSuite(): ?string{ |
||
737 | |||
738 | /** |
||
739 | * Get the nom suite2. |
||
740 | * |
||
741 | * @return string|null Returns the nom suite2. |
||
742 | */ |
||
743 | public function getNomSuite2(): ?string{ |
||
746 | |||
747 | /** |
||
748 | * Get the nom ville. |
||
749 | * |
||
750 | * @return string|null Returns the nom ville. |
||
751 | */ |
||
752 | public function getNomVille(): ?string{ |
||
755 | |||
756 | /** |
||
757 | * Get the nom ville2. |
||
758 | * |
||
759 | * @return string|null Returns the nom ville2. |
||
760 | */ |
||
761 | public function getNomVille2(): ?string{ |
||
764 | |||
765 | /** |
||
766 | * Get the nom voie. |
||
767 | * |
||
768 | * @return string|null Returns the nom voie. |
||
769 | */ |
||
770 | public function getNomVoie(): ?string{ |
||
773 | |||
774 | /** |
||
775 | * Get the nom voie2. |
||
776 | * |
||
777 | * @return string|null Returns the nom voie2. |
||
778 | */ |
||
779 | public function getNomVoie2(): ?string{ |
||
782 | |||
783 | /** |
||
784 | * Get the nombre echeances. |
||
785 | * |
||
786 | * @return int|null Returns the nombre echeances. |
||
787 | */ |
||
788 | public function getNombreEcheances(): ?int{ |
||
791 | |||
792 | /** |
||
793 | * Get the num voie. |
||
794 | * |
||
795 | * @return string|null Returns the num voie. |
||
796 | */ |
||
797 | public function getNumVoie(): ?string{ |
||
800 | |||
801 | /** |
||
802 | * Get the num voie2. |
||
803 | * |
||
804 | * @return string|null Returns the num voie2. |
||
805 | */ |
||
806 | public function getNumVoie2(): ?string{ |
||
809 | |||
810 | /** |
||
811 | * Get the numero facture fournisseur. |
||
812 | * |
||
813 | * @return string|null Returns the numero facture fournisseur. |
||
814 | */ |
||
815 | public function getNumeroFactureFournisseur(): ?string{ |
||
818 | |||
819 | /** |
||
820 | * Get the paiement depart le. |
||
821 | * |
||
822 | * @return int|null Returns the paiement depart le. |
||
823 | */ |
||
824 | public function getPaiementDepartLe(): ?int{ |
||
827 | |||
828 | /** |
||
829 | * Get the paiement le. |
||
830 | * |
||
831 | * @return int|null Returns the paiement le. |
||
832 | */ |
||
833 | public function getPaiementLe(): ?int{ |
||
836 | |||
837 | /** |
||
838 | * Get the paiement nombre de jours. |
||
839 | * |
||
840 | * @return int|null Returns the paiement nombre de jours. |
||
841 | */ |
||
842 | public function getPaiementNombreDeJours(): ?int{ |
||
845 | |||
846 | /** |
||
847 | * Get the poids. |
||
848 | * |
||
849 | * @return float|null Returns the poids. |
||
850 | */ |
||
851 | public function getPoids(): ?float{ |
||
854 | |||
855 | /** |
||
856 | * Get the reference1. |
||
857 | * |
||
858 | * @return string|null Returns the reference1. |
||
859 | */ |
||
860 | public function getReference1(): ?string{ |
||
863 | |||
864 | /** |
||
865 | * Get the reference2. |
||
866 | * |
||
867 | * @return string|null Returns the reference2. |
||
868 | */ |
||
869 | public function getReference2(): ?string{ |
||
872 | |||
873 | /** |
||
874 | * Get the reference3. |
||
875 | * |
||
876 | * @return string|null Returns the reference3. |
||
877 | */ |
||
878 | public function getReference3(): ?string{ |
||
881 | |||
882 | /** |
||
883 | * Get the reference4. |
||
884 | * |
||
885 | * @return string|null Returns the reference4. |
||
886 | */ |
||
887 | public function getReference4(): ?string{ |
||
890 | |||
891 | /** |
||
892 | * Get the remise pied. |
||
893 | * |
||
894 | * @return float|null Returns the remise pied. |
||
895 | */ |
||
896 | public function getRemisePied(): ?float{ |
||
899 | |||
900 | /** |
||
901 | * Get the remise pied2. |
||
902 | * |
||
903 | * @return float|null Returns the remise pied2. |
||
904 | */ |
||
905 | public function getRemisePied2(): ?float{ |
||
908 | |||
909 | /** |
||
910 | * Get the remise pied3. |
||
911 | * |
||
912 | * @return float|null Returns the remise pied3. |
||
913 | */ |
||
914 | public function getRemisePied3(): ?float{ |
||
917 | |||
918 | /** |
||
919 | * Get the saisir adresse. |
||
920 | * |
||
921 | * @return bool|null Returns the saisir adresse. |
||
922 | */ |
||
923 | public function getSaisirAdresse(): ?bool{ |
||
926 | |||
927 | /** |
||
928 | * Get the saisir adresse livraison. |
||
929 | * |
||
930 | * @return bool|null Returns the saisir adresse livraison. |
||
931 | */ |
||
932 | public function getSaisirAdresseLivraison(): ?bool{ |
||
935 | |||
936 | /** |
||
937 | * Get the soumis escompte. |
||
938 | * |
||
939 | * @return bool|null Returns the soumis escompte. |
||
940 | */ |
||
941 | public function getSoumisEscompte(): ?bool{ |
||
944 | |||
945 | /** |
||
946 | * Get the soumis taxe1. |
||
947 | * |
||
948 | * @return bool|null Returns the soumis taxe1. |
||
949 | */ |
||
950 | public function getSoumisTaxe1(): ?bool{ |
||
953 | |||
954 | /** |
||
955 | * Get the soumis taxe2. |
||
956 | * |
||
957 | * @return bool|null Returns the soumis taxe2. |
||
958 | */ |
||
959 | public function getSoumisTaxe2(): ?bool{ |
||
962 | |||
963 | /** |
||
964 | * Get the soumis taxe3. |
||
965 | * |
||
966 | * @return bool|null Returns the soumis taxe3. |
||
967 | */ |
||
968 | public function getSoumisTaxe3(): ?bool{ |
||
971 | |||
972 | /** |
||
973 | * Get the taux devise. |
||
974 | * |
||
975 | * @return float|null Returns the taux devise. |
||
976 | */ |
||
977 | public function getTauxDevise(): ?float{ |
||
980 | |||
981 | /** |
||
982 | * Get the transfert. |
||
983 | * |
||
984 | * @return int|null Returns the transfert. |
||
985 | */ |
||
986 | public function getTransfert(): ?int{ |
||
989 | |||
990 | /** |
||
991 | * Get the transporteur. |
||
992 | * |
||
993 | * @return string|null Returns the transporteur. |
||
994 | */ |
||
995 | public function getTransporteur(): ?string{ |
||
998 | |||
999 | /** |
||
1000 | * Get the tx escompte achat. |
||
1001 | * |
||
1002 | * @return float|null Returns the tx escompte achat. |
||
1003 | */ |
||
1004 | public function getTxEscompteAchat(): ?float{ |
||
1007 | |||
1008 | /** |
||
1009 | * Set the btq. |
||
1010 | * |
||
1011 | * @param string|null $btq The btq. |
||
1012 | * @return BrEntete Returns this Br entete. |
||
1013 | */ |
||
1014 | public function setBtq(?string $btq): BrEntete { |
||
1018 | |||
1019 | /** |
||
1020 | * Set the btq2. |
||
1021 | * |
||
1022 | * @param string|null $btq2 The btq2. |
||
1023 | * @return BrEntete Returns this Br entete. |
||
1024 | */ |
||
1025 | public function setBtq2(?string $btq2): BrEntete { |
||
1029 | |||
1030 | /** |
||
1031 | * Set the bureau distributeur. |
||
1032 | * |
||
1033 | * @param string|null $bureauDistributeur The bureau distributeur. |
||
1034 | * @return BrEntete Returns this Br entete. |
||
1035 | */ |
||
1036 | public function setBureauDistributeur(?string $bureauDistributeur): BrEntete { |
||
1040 | |||
1041 | /** |
||
1042 | * Set the bureau distributeur2. |
||
1043 | * |
||
1044 | * @param string|null $bureauDistributeur2 The bureau distributeur2. |
||
1045 | * @return BrEntete Returns this Br entete. |
||
1046 | */ |
||
1047 | public function setBureauDistributeur2(?string $bureauDistributeur2): BrEntete { |
||
1051 | |||
1052 | /** |
||
1053 | * Set the code devise. |
||
1054 | * |
||
1055 | * @param string|null $codeDevise The code devise. |
||
1056 | * @return BrEntete Returns this Br entete. |
||
1057 | */ |
||
1058 | public function setCodeDevise(?string $codeDevise): BrEntete { |
||
1062 | |||
1063 | /** |
||
1064 | * Set the code fournisseur. |
||
1065 | * |
||
1066 | * @param string|null $codeFournisseur The code fournisseur. |
||
1067 | * @return BrEntete Returns this Br entete. |
||
1068 | */ |
||
1069 | public function setCodeFournisseur(?string $codeFournisseur): BrEntete { |
||
1073 | |||
1074 | /** |
||
1075 | * Set the code livraison. |
||
1076 | * |
||
1077 | * @param string|null $codeLivraison The code livraison. |
||
1078 | * @return BrEntete Returns this Br entete. |
||
1079 | */ |
||
1080 | public function setCodeLivraison(?string $codeLivraison): BrEntete { |
||
1084 | |||
1085 | /** |
||
1086 | * Set the code officiel commune. |
||
1087 | * |
||
1088 | * @param string|null $codeOfficielCommune The code officiel commune. |
||
1089 | * @return BrEntete Returns this Br entete. |
||
1090 | */ |
||
1091 | public function setCodeOfficielCommune(?string $codeOfficielCommune): BrEntete { |
||
1095 | |||
1096 | /** |
||
1097 | * Set the code officiel commune2. |
||
1098 | * |
||
1099 | * @param string|null $codeOfficielCommune2 The code officiel commune2. |
||
1100 | * @return BrEntete Returns this Br entete. |
||
1101 | */ |
||
1102 | public function setCodeOfficielCommune2(?string $codeOfficielCommune2): BrEntete { |
||
1106 | |||
1107 | /** |
||
1108 | * Set the code postal. |
||
1109 | * |
||
1110 | * @param string|null $codePostal The code postal. |
||
1111 | * @return BrEntete Returns this Br entete. |
||
1112 | */ |
||
1113 | public function setCodePostal(?string $codePostal): BrEntete { |
||
1117 | |||
1118 | /** |
||
1119 | * Set the code postal2. |
||
1120 | * |
||
1121 | * @param string|null $codePostal2 The code postal2. |
||
1122 | * @return BrEntete Returns this Br entete. |
||
1123 | */ |
||
1124 | public function setCodePostal2(?string $codePostal2): BrEntete { |
||
1128 | |||
1129 | /** |
||
1130 | * Set the code reglement. |
||
1131 | * |
||
1132 | * @param string|null $codeReglement The code reglement. |
||
1133 | * @return BrEntete Returns this Br entete. |
||
1134 | */ |
||
1135 | public function setCodeReglement(?string $codeReglement): BrEntete { |
||
1139 | |||
1140 | /** |
||
1141 | * Set the code tva. |
||
1142 | * |
||
1143 | * @param string|null $codeTva The code tva. |
||
1144 | * @return BrEntete Returns this Br entete. |
||
1145 | */ |
||
1146 | public function setCodeTva(?string $codeTva): BrEntete { |
||
1150 | |||
1151 | /** |
||
1152 | * Set the code ventil compta. |
||
1153 | * |
||
1154 | * @param string|null $codeVentilCompta The code ventil compta. |
||
1155 | * @return BrEntete Returns this Br entete. |
||
1156 | */ |
||
1157 | public function setCodeVentilCompta(?string $codeVentilCompta): BrEntete { |
||
1161 | |||
1162 | /** |
||
1163 | * Set the complement. |
||
1164 | * |
||
1165 | * @param string|null $complement The complement. |
||
1166 | * @return BrEntete Returns this Br entete. |
||
1167 | */ |
||
1168 | public function setComplement(?string $complement): BrEntete { |
||
1172 | |||
1173 | /** |
||
1174 | * Set the complement2. |
||
1175 | * |
||
1176 | * @param string|null $complement2 The complement2. |
||
1177 | * @return BrEntete Returns this Br entete. |
||
1178 | */ |
||
1179 | public function setComplement2(?string $complement2): BrEntete { |
||
1183 | |||
1184 | /** |
||
1185 | * Set the date creation. |
||
1186 | * |
||
1187 | * @param DateTime|null $dateCreation The date creation. |
||
1188 | * @return BrEntete Returns this Br entete. |
||
1189 | */ |
||
1190 | public function setDateCreation(?DateTime $dateCreation): BrEntete { |
||
1194 | |||
1195 | /** |
||
1196 | * Set the date echeance. |
||
1197 | * |
||
1198 | * @param DateTime|null $dateEcheance The date echeance. |
||
1199 | * @return BrEntete Returns this Br entete. |
||
1200 | */ |
||
1201 | public function setDateEcheance(?DateTime $dateEcheance): BrEntete { |
||
1205 | |||
1206 | /** |
||
1207 | * Set the date facture fournisseur. |
||
1208 | * |
||
1209 | * @param DateTime|null $dateFactureFournisseur The date facture fournisseur. |
||
1210 | * @return BrEntete Returns this Br entete. |
||
1211 | */ |
||
1212 | public function setDateFactureFournisseur(?DateTime $dateFactureFournisseur): BrEntete { |
||
1216 | |||
1217 | /** |
||
1218 | * Set the date modification. |
||
1219 | * |
||
1220 | * @param DateTime|null $dateModification The date modification. |
||
1221 | * @return BrEntete Returns this Br entete. |
||
1222 | */ |
||
1223 | public function setDateModification(?DateTime $dateModification): BrEntete { |
||
1227 | |||
1228 | /** |
||
1229 | * Set the date piece. |
||
1230 | * |
||
1231 | * @param DateTime|null $datePiece The date piece. |
||
1232 | * @return BrEntete Returns this Br entete. |
||
1233 | */ |
||
1234 | public function setDatePiece(?DateTime $datePiece): BrEntete { |
||
1238 | |||
1239 | /** |
||
1240 | * Set the date reception prevue. |
||
1241 | * |
||
1242 | * @param DateTime|null $dateReceptionPrevue The date reception prevue. |
||
1243 | * @return BrEntete Returns this Br entete. |
||
1244 | */ |
||
1245 | public function setDateReceptionPrevue(?DateTime $dateReceptionPrevue): BrEntete { |
||
1249 | |||
1250 | /** |
||
1251 | * Set the echeance forcee. |
||
1252 | * |
||
1253 | * @param bool|null $echeanceForcee The echeance forcee. |
||
1254 | * @return BrEntete Returns this Br entete. |
||
1255 | */ |
||
1256 | public function setEcheanceForcee(?bool $echeanceForcee): BrEntete { |
||
1260 | |||
1261 | /** |
||
1262 | * Set the edition. |
||
1263 | * |
||
1264 | * @param int|null $edition The edition. |
||
1265 | * @return BrEntete Returns this Br entete. |
||
1266 | */ |
||
1267 | public function setEdition(?int $edition): BrEntete { |
||
1271 | |||
1272 | /** |
||
1273 | * Set the facture euros. |
||
1274 | * |
||
1275 | * @param bool|null $factureEuros The facture euros. |
||
1276 | * @return BrEntete Returns this Br entete. |
||
1277 | */ |
||
1278 | public function setFactureEuros(?bool $factureEuros): BrEntete { |
||
1282 | |||
1283 | /** |
||
1284 | * Set the montant acompte. |
||
1285 | * |
||
1286 | * @param float|null $montantAcompte The montant acompte. |
||
1287 | * @return BrEntete Returns this Br entete. |
||
1288 | */ |
||
1289 | public function setMontantAcompte(?float $montantAcompte): BrEntete { |
||
1293 | |||
1294 | /** |
||
1295 | * Set the nb colis. |
||
1296 | * |
||
1297 | * @param int|null $nbColis The nb colis. |
||
1298 | * @return BrEntete Returns this Br entete. |
||
1299 | */ |
||
1300 | public function setNbColis(?int $nbColis): BrEntete { |
||
1304 | |||
1305 | /** |
||
1306 | * Set the no piece. |
||
1307 | * |
||
1308 | * @param string|null $noPiece The no piece. |
||
1309 | * @return BrEntete Returns this Br entete. |
||
1310 | */ |
||
1311 | public function setNoPiece(?string $noPiece): BrEntete { |
||
1315 | |||
1316 | /** |
||
1317 | * Set the nom. |
||
1318 | * |
||
1319 | * @param string|null $nom The nom. |
||
1320 | * @return BrEntete Returns this Br entete. |
||
1321 | */ |
||
1322 | public function setNom(?string $nom): BrEntete { |
||
1326 | |||
1327 | /** |
||
1328 | * Set the nom2. |
||
1329 | * |
||
1330 | * @param string|null $nom2 The nom2. |
||
1331 | * @return BrEntete Returns this Br entete. |
||
1332 | */ |
||
1333 | public function setNom2(?string $nom2): BrEntete { |
||
1337 | |||
1338 | /** |
||
1339 | * Set the nom suite. |
||
1340 | * |
||
1341 | * @param string|null $nomSuite The nom suite. |
||
1342 | * @return BrEntete Returns this Br entete. |
||
1343 | */ |
||
1344 | public function setNomSuite(?string $nomSuite): BrEntete { |
||
1348 | |||
1349 | /** |
||
1350 | * Set the nom suite2. |
||
1351 | * |
||
1352 | * @param string|null $nomSuite2 The nom suite2. |
||
1353 | * @return BrEntete Returns this Br entete. |
||
1354 | */ |
||
1355 | public function setNomSuite2(?string $nomSuite2): BrEntete { |
||
1359 | |||
1360 | /** |
||
1361 | * Set the nom ville. |
||
1362 | * |
||
1363 | * @param string|null $nomVille The nom ville. |
||
1364 | * @return BrEntete Returns this Br entete. |
||
1365 | */ |
||
1366 | public function setNomVille(?string $nomVille): BrEntete { |
||
1370 | |||
1371 | /** |
||
1372 | * Set the nom ville2. |
||
1373 | * |
||
1374 | * @param string|null $nomVille2 The nom ville2. |
||
1375 | * @return BrEntete Returns this Br entete. |
||
1376 | */ |
||
1377 | public function setNomVille2(?string $nomVille2): BrEntete { |
||
1381 | |||
1382 | /** |
||
1383 | * Set the nom voie. |
||
1384 | * |
||
1385 | * @param string|null $nomVoie The nom voie. |
||
1386 | * @return BrEntete Returns this Br entete. |
||
1387 | */ |
||
1388 | public function setNomVoie(?string $nomVoie): BrEntete { |
||
1392 | |||
1393 | /** |
||
1394 | * Set the nom voie2. |
||
1395 | * |
||
1396 | * @param string|null $nomVoie2 The nom voie2. |
||
1397 | * @return BrEntete Returns this Br entete. |
||
1398 | */ |
||
1399 | public function setNomVoie2(?string $nomVoie2): BrEntete { |
||
1403 | |||
1404 | /** |
||
1405 | * Set the nombre echeances. |
||
1406 | * |
||
1407 | * @param int|null $nombreEcheances The nombre echeances. |
||
1408 | * @return BrEntete Returns this Br entete. |
||
1409 | */ |
||
1410 | public function setNombreEcheances(?int $nombreEcheances): BrEntete { |
||
1414 | |||
1415 | /** |
||
1416 | * Set the num voie. |
||
1417 | * |
||
1418 | * @param string|null $numVoie The num voie. |
||
1419 | * @return BrEntete Returns this Br entete. |
||
1420 | */ |
||
1421 | public function setNumVoie(?string $numVoie): BrEntete { |
||
1425 | |||
1426 | /** |
||
1427 | * Set the num voie2. |
||
1428 | * |
||
1429 | * @param string|null $numVoie2 The num voie2. |
||
1430 | * @return BrEntete Returns this Br entete. |
||
1431 | */ |
||
1432 | public function setNumVoie2(?string $numVoie2): BrEntete { |
||
1436 | |||
1437 | /** |
||
1438 | * Set the numero facture fournisseur. |
||
1439 | * |
||
1440 | * @param string|null $numeroFactureFournisseur The numero facture fournisseur. |
||
1441 | * @return BrEntete Returns this Br entete. |
||
1442 | */ |
||
1443 | public function setNumeroFactureFournisseur(?string $numeroFactureFournisseur): BrEntete { |
||
1447 | |||
1448 | /** |
||
1449 | * Set the paiement depart le. |
||
1450 | * |
||
1451 | * @param int|null $paiementDepartLe The paiement depart le. |
||
1452 | * @return BrEntete Returns this Br entete. |
||
1453 | */ |
||
1454 | public function setPaiementDepartLe(?int $paiementDepartLe): BrEntete { |
||
1458 | |||
1459 | /** |
||
1460 | * Set the paiement le. |
||
1461 | * |
||
1462 | * @param int|null $paiementLe The paiement le. |
||
1463 | * @return BrEntete Returns this Br entete. |
||
1464 | */ |
||
1465 | public function setPaiementLe(?int $paiementLe): BrEntete { |
||
1469 | |||
1470 | /** |
||
1471 | * Set the paiement nombre de jours. |
||
1472 | * |
||
1473 | * @param int|null $paiementNombreDeJours The paiement nombre de jours. |
||
1474 | * @return BrEntete Returns this Br entete. |
||
1475 | */ |
||
1476 | public function setPaiementNombreDeJours(?int $paiementNombreDeJours): BrEntete { |
||
1480 | |||
1481 | /** |
||
1482 | * Set the poids. |
||
1483 | * |
||
1484 | * @param float|null $poids The poids. |
||
1485 | * @return BrEntete Returns this Br entete. |
||
1486 | */ |
||
1487 | public function setPoids(?float $poids): BrEntete { |
||
1491 | |||
1492 | /** |
||
1493 | * Set the reference1. |
||
1494 | * |
||
1495 | * @param string|null $reference1 The reference1. |
||
1496 | * @return BrEntete Returns this Br entete. |
||
1497 | */ |
||
1498 | public function setReference1(?string $reference1): BrEntete { |
||
1502 | |||
1503 | /** |
||
1504 | * Set the reference2. |
||
1505 | * |
||
1506 | * @param string|null $reference2 The reference2. |
||
1507 | * @return BrEntete Returns this Br entete. |
||
1508 | */ |
||
1509 | public function setReference2(?string $reference2): BrEntete { |
||
1513 | |||
1514 | /** |
||
1515 | * Set the reference3. |
||
1516 | * |
||
1517 | * @param string|null $reference3 The reference3. |
||
1518 | * @return BrEntete Returns this Br entete. |
||
1519 | */ |
||
1520 | public function setReference3(?string $reference3): BrEntete { |
||
1524 | |||
1525 | /** |
||
1526 | * Set the reference4. |
||
1527 | * |
||
1528 | * @param string|null $reference4 The reference4. |
||
1529 | * @return BrEntete Returns this Br entete. |
||
1530 | */ |
||
1531 | public function setReference4(?string $reference4): BrEntete { |
||
1535 | |||
1536 | /** |
||
1537 | * Set the remise pied. |
||
1538 | * |
||
1539 | * @param float|null $remisePied The remise pied. |
||
1540 | * @return BrEntete Returns this Br entete. |
||
1541 | */ |
||
1542 | public function setRemisePied(?float $remisePied): BrEntete { |
||
1546 | |||
1547 | /** |
||
1548 | * Set the remise pied2. |
||
1549 | * |
||
1550 | * @param float|null $remisePied2 The remise pied2. |
||
1551 | * @return BrEntete Returns this Br entete. |
||
1552 | */ |
||
1553 | public function setRemisePied2(?float $remisePied2): BrEntete { |
||
1557 | |||
1558 | /** |
||
1559 | * Set the remise pied3. |
||
1560 | * |
||
1561 | * @param float|null $remisePied3 The remise pied3. |
||
1562 | * @return BrEntete Returns this Br entete. |
||
1563 | */ |
||
1564 | public function setRemisePied3(?float $remisePied3): BrEntete { |
||
1568 | |||
1569 | /** |
||
1570 | * Set the saisir adresse. |
||
1571 | * |
||
1572 | * @param bool|null $saisirAdresse The saisir adresse. |
||
1573 | * @return BrEntete Returns this Br entete. |
||
1574 | */ |
||
1575 | public function setSaisirAdresse(?bool $saisirAdresse): BrEntete { |
||
1579 | |||
1580 | /** |
||
1581 | * Set the saisir adresse livraison. |
||
1582 | * |
||
1583 | * @param bool|null $saisirAdresseLivraison The saisir adresse livraison. |
||
1584 | * @return BrEntete Returns this Br entete. |
||
1585 | */ |
||
1586 | public function setSaisirAdresseLivraison(?bool $saisirAdresseLivraison): BrEntete { |
||
1590 | |||
1591 | /** |
||
1592 | * Set the soumis escompte. |
||
1593 | * |
||
1594 | * @param bool|null $soumisEscompte The soumis escompte. |
||
1595 | * @return BrEntete Returns this Br entete. |
||
1596 | */ |
||
1597 | public function setSoumisEscompte(?bool $soumisEscompte): BrEntete { |
||
1601 | |||
1602 | /** |
||
1603 | * Set the soumis taxe1. |
||
1604 | * |
||
1605 | * @param bool|null $soumisTaxe1 The soumis taxe1. |
||
1606 | * @return BrEntete Returns this Br entete. |
||
1607 | */ |
||
1608 | public function setSoumisTaxe1(?bool $soumisTaxe1): BrEntete { |
||
1612 | |||
1613 | /** |
||
1614 | * Set the soumis taxe2. |
||
1615 | * |
||
1616 | * @param bool|null $soumisTaxe2 The soumis taxe2. |
||
1617 | * @return BrEntete Returns this Br entete. |
||
1618 | */ |
||
1619 | public function setSoumisTaxe2(?bool $soumisTaxe2): BrEntete { |
||
1623 | |||
1624 | /** |
||
1625 | * Set the soumis taxe3. |
||
1626 | * |
||
1627 | * @param bool|null $soumisTaxe3 The soumis taxe3. |
||
1628 | * @return BrEntete Returns this Br entete. |
||
1629 | */ |
||
1630 | public function setSoumisTaxe3(?bool $soumisTaxe3): BrEntete { |
||
1634 | |||
1635 | /** |
||
1636 | * Set the taux devise. |
||
1637 | * |
||
1638 | * @param float|null $tauxDevise The taux devise. |
||
1639 | * @return BrEntete Returns this Br entete. |
||
1640 | */ |
||
1641 | public function setTauxDevise(?float $tauxDevise): BrEntete { |
||
1645 | |||
1646 | /** |
||
1647 | * Set the transfert. |
||
1648 | * |
||
1649 | * @param int|null $transfert The transfert. |
||
1650 | * @return BrEntete Returns this Br entete. |
||
1651 | */ |
||
1652 | public function setTransfert(?int $transfert): BrEntete { |
||
1656 | |||
1657 | /** |
||
1658 | * Set the transporteur. |
||
1659 | * |
||
1660 | * @param string|null $transporteur The transporteur. |
||
1661 | * @return BrEntete Returns this Br entete. |
||
1662 | */ |
||
1663 | public function setTransporteur(?string $transporteur): BrEntete { |
||
1667 | |||
1668 | /** |
||
1669 | * Set the tx escompte achat. |
||
1670 | * |
||
1671 | * @param float|null $txEscompteAchat The tx escompte achat. |
||
1672 | * @return BrEntete Returns this Br entete. |
||
1673 | */ |
||
1674 | public function setTxEscompteAchat(?float $txEscompteAchat): BrEntete { |
||
1678 | } |
||
1679 |