Complex classes like Articles 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 Articles, and based on these observations, apply Extract Interface, too.
1 | <?php |
||
22 | class Articles { |
||
23 | |||
24 | /** |
||
25 | * Actif. |
||
26 | * |
||
27 | * @var bool|null |
||
28 | */ |
||
29 | private $actif; |
||
30 | |||
31 | /** |
||
32 | * Article remplacement. |
||
33 | * |
||
34 | * @var string|null |
||
35 | */ |
||
36 | private $articleRemplacement; |
||
37 | |||
38 | /** |
||
39 | * Classification four. |
||
40 | * |
||
41 | * @var string|null |
||
42 | */ |
||
43 | private $classificationFour; |
||
44 | |||
45 | /** |
||
46 | * Classification util. |
||
47 | * |
||
48 | * @var string|null |
||
49 | */ |
||
50 | private $classificationUtil; |
||
51 | |||
52 | /** |
||
53 | * Code affect rent. |
||
54 | * |
||
55 | * @var string|null |
||
56 | */ |
||
57 | private $codeAffectRent; |
||
58 | |||
59 | /** |
||
60 | * Code anal achat. |
||
61 | * |
||
62 | * @var string|null |
||
63 | */ |
||
64 | private $codeAnalAchat; |
||
65 | |||
66 | /** |
||
67 | * Code anal vente. |
||
68 | * |
||
69 | * @var string|null |
||
70 | */ |
||
71 | private $codeAnalVente; |
||
72 | |||
73 | /** |
||
74 | * Code article. |
||
75 | * |
||
76 | * @var string|null |
||
77 | */ |
||
78 | private $codeArticle; |
||
79 | |||
80 | /** |
||
81 | * Code fournisseur. |
||
82 | * |
||
83 | * @var string|null |
||
84 | */ |
||
85 | private $codeFournisseur; |
||
86 | |||
87 | /** |
||
88 | * Code tva achat. |
||
89 | * |
||
90 | * @var string|null |
||
91 | */ |
||
92 | private $codeTvaAchat; |
||
93 | |||
94 | /** |
||
95 | * Code tva vente. |
||
96 | * |
||
97 | * @var string|null |
||
98 | */ |
||
99 | private $codeTvaVente; |
||
100 | |||
101 | /** |
||
102 | * Code unite. |
||
103 | * |
||
104 | * @var string|null |
||
105 | */ |
||
106 | private $codeUnite; |
||
107 | |||
108 | /** |
||
109 | * Code ventil achat. |
||
110 | * |
||
111 | * @var string|null |
||
112 | */ |
||
113 | private $codeVentilAchat; |
||
114 | |||
115 | /** |
||
116 | * Code ventil vente. |
||
117 | * |
||
118 | * @var string|null |
||
119 | */ |
||
120 | private $codeVentilVente; |
||
121 | |||
122 | /** |
||
123 | * Coef. |
||
124 | * |
||
125 | * @var float|null |
||
126 | */ |
||
127 | private $coef; |
||
128 | |||
129 | /** |
||
130 | * Date creation. |
||
131 | * |
||
132 | * @var DateTime|null |
||
133 | */ |
||
134 | private $dateCreation; |
||
135 | |||
136 | /** |
||
137 | * Date modification. |
||
138 | * |
||
139 | * @var DateTime|null |
||
140 | */ |
||
141 | private $dateModification; |
||
142 | |||
143 | /** |
||
144 | * Depuis deb fac. |
||
145 | * |
||
146 | * @var bool|null |
||
147 | */ |
||
148 | private $depuisDebFac; |
||
149 | |||
150 | /** |
||
151 | * Dernier prix achat. |
||
152 | * |
||
153 | * @var float|null |
||
154 | */ |
||
155 | private $dernierPrixAchat; |
||
156 | |||
157 | /** |
||
158 | * Designation. |
||
159 | * |
||
160 | * @var string|null |
||
161 | */ |
||
162 | private $designation; |
||
163 | |||
164 | /** |
||
165 | * Designation2. |
||
166 | * |
||
167 | * @var string|null |
||
168 | */ |
||
169 | private $designation2; |
||
170 | |||
171 | /** |
||
172 | * Designation3. |
||
173 | * |
||
174 | * @var string|null |
||
175 | */ |
||
176 | private $designation3; |
||
177 | |||
178 | /** |
||
179 | * Designation rtf. |
||
180 | * |
||
181 | * @var string|null |
||
182 | */ |
||
183 | private $designationRtf; |
||
184 | |||
185 | /** |
||
186 | * Famille article. |
||
187 | * |
||
188 | * @var string|null |
||
189 | */ |
||
190 | private $familleArticle; |
||
191 | |||
192 | /** |
||
193 | * Imprimer dans pied. |
||
194 | * |
||
195 | * @var bool|null |
||
196 | */ |
||
197 | private $imprimerDansPied; |
||
198 | |||
199 | /** |
||
200 | * Montant unitaire taxe. |
||
201 | * |
||
202 | * @var float|null |
||
203 | */ |
||
204 | private $montantUnitaireTaxe; |
||
205 | |||
206 | /** |
||
207 | * Mot cle dans pied. |
||
208 | * |
||
209 | * @var string|null |
||
210 | */ |
||
211 | private $motCleDansPied; |
||
212 | |||
213 | /** |
||
214 | * Ne pas reviser. |
||
215 | * |
||
216 | * @var bool|null |
||
217 | */ |
||
218 | private $nePasReviser; |
||
219 | |||
220 | /** |
||
221 | * Nombre echeances. |
||
222 | * |
||
223 | * @var string|null |
||
224 | */ |
||
225 | private $nombreEcheances; |
||
226 | |||
227 | /** |
||
228 | * Numero pj. |
||
229 | * |
||
230 | * @var int|null |
||
231 | */ |
||
232 | private $numeroPj; |
||
233 | |||
234 | /** |
||
235 | * Pamp. |
||
236 | * |
||
237 | * @var float|null |
||
238 | */ |
||
239 | private $pamp; |
||
240 | |||
241 | /** |
||
242 | * Poste rent. |
||
243 | * |
||
244 | * @var string|null |
||
245 | */ |
||
246 | private $posteRent; |
||
247 | |||
248 | /** |
||
249 | * Prix net. |
||
250 | * |
||
251 | * @var bool|null |
||
252 | */ |
||
253 | private $prixNet; |
||
254 | |||
255 | /** |
||
256 | * Prix revient. |
||
257 | * |
||
258 | * @var float|null |
||
259 | */ |
||
260 | private $prixRevient; |
||
261 | |||
262 | /** |
||
263 | * Prix vente. |
||
264 | * |
||
265 | * @var float|null |
||
266 | */ |
||
267 | private $prixVente; |
||
268 | |||
269 | /** |
||
270 | * Prix vente euros. |
||
271 | * |
||
272 | * @var float|null |
||
273 | */ |
||
274 | private $prixVenteEuros; |
||
275 | |||
276 | /** |
||
277 | * Produit. |
||
278 | * |
||
279 | * @var bool|null |
||
280 | */ |
||
281 | private $produit; |
||
282 | |||
283 | /** |
||
284 | * Produit chimique. |
||
285 | * |
||
286 | * @var bool|null |
||
287 | */ |
||
288 | private $produitChimique; |
||
289 | |||
290 | /** |
||
291 | * Px facture. |
||
292 | * |
||
293 | * @var bool|null |
||
294 | */ |
||
295 | private $pxFacture; |
||
296 | |||
297 | /** |
||
298 | * Qte stock mini. |
||
299 | * |
||
300 | * @var float|null |
||
301 | */ |
||
302 | private $qteStockMini; |
||
303 | |||
304 | /** |
||
305 | * Qte stock reel. |
||
306 | * |
||
307 | * @var float|null |
||
308 | */ |
||
309 | private $qteStockReel; |
||
310 | |||
311 | /** |
||
312 | * Soumis escompte. |
||
313 | * |
||
314 | * @var bool|null |
||
315 | */ |
||
316 | private $soumisEscompte; |
||
317 | |||
318 | /** |
||
319 | * Suivi stock. |
||
320 | * |
||
321 | * @var bool|null |
||
322 | */ |
||
323 | private $suiviStock; |
||
324 | |||
325 | /** |
||
326 | * Taux escompte. |
||
327 | * |
||
328 | * @var float|null |
||
329 | */ |
||
330 | private $tauxEscompte; |
||
331 | |||
332 | /** |
||
333 | * Type article. |
||
334 | * |
||
335 | * @var string|null |
||
336 | */ |
||
337 | private $typeArticle; |
||
338 | |||
339 | /** |
||
340 | * Variante. |
||
341 | * |
||
342 | * @var bool|null |
||
343 | */ |
||
344 | private $variante; |
||
345 | |||
346 | /** |
||
347 | * Ventil marge. |
||
348 | * |
||
349 | * @var bool|null |
||
350 | */ |
||
351 | private $ventilMarge; |
||
352 | |||
353 | /** |
||
354 | * Visu dans att fisc. |
||
355 | * |
||
356 | * @var bool|null |
||
357 | */ |
||
358 | private $visuDansAttFisc; |
||
359 | |||
360 | |||
361 | /** |
||
362 | * Constructor. |
||
363 | */ |
||
364 | public function __construct() { |
||
367 | |||
368 | /** |
||
369 | * Get the actif. |
||
370 | * |
||
371 | * @return bool|null Returns the actif. |
||
372 | */ |
||
373 | public function getActif(): ?bool{ |
||
376 | |||
377 | /** |
||
378 | * Get the article remplacement. |
||
379 | * |
||
380 | * @return string|null Returns the article remplacement. |
||
381 | */ |
||
382 | public function getArticleRemplacement(): ?string{ |
||
385 | |||
386 | /** |
||
387 | * Get the classification four. |
||
388 | * |
||
389 | * @return string|null Returns the classification four. |
||
390 | */ |
||
391 | public function getClassificationFour(): ?string{ |
||
394 | |||
395 | /** |
||
396 | * Get the classification util. |
||
397 | * |
||
398 | * @return string|null Returns the classification util. |
||
399 | */ |
||
400 | public function getClassificationUtil(): ?string{ |
||
403 | |||
404 | /** |
||
405 | * Get the code affect rent. |
||
406 | * |
||
407 | * @return string|null Returns the code affect rent. |
||
408 | */ |
||
409 | public function getCodeAffectRent(): ?string{ |
||
412 | |||
413 | /** |
||
414 | * Get the code anal achat. |
||
415 | * |
||
416 | * @return string|null Returns the code anal achat. |
||
417 | */ |
||
418 | public function getCodeAnalAchat(): ?string{ |
||
421 | |||
422 | /** |
||
423 | * Get the code anal vente. |
||
424 | * |
||
425 | * @return string|null Returns the code anal vente. |
||
426 | */ |
||
427 | public function getCodeAnalVente(): ?string{ |
||
430 | |||
431 | /** |
||
432 | * Get the code article. |
||
433 | * |
||
434 | * @return string|null Returns the code article. |
||
435 | */ |
||
436 | public function getCodeArticle(): ?string{ |
||
439 | |||
440 | /** |
||
441 | * Get the code fournisseur. |
||
442 | * |
||
443 | * @return string|null Returns the code fournisseur. |
||
444 | */ |
||
445 | public function getCodeFournisseur(): ?string{ |
||
448 | |||
449 | /** |
||
450 | * Get the code tva achat. |
||
451 | * |
||
452 | * @return string|null Returns the code tva achat. |
||
453 | */ |
||
454 | public function getCodeTvaAchat(): ?string{ |
||
457 | |||
458 | /** |
||
459 | * Get the code tva vente. |
||
460 | * |
||
461 | * @return string|null Returns the code tva vente. |
||
462 | */ |
||
463 | public function getCodeTvaVente(): ?string{ |
||
466 | |||
467 | /** |
||
468 | * Get the code unite. |
||
469 | * |
||
470 | * @return string|null Returns the code unite. |
||
471 | */ |
||
472 | public function getCodeUnite(): ?string{ |
||
475 | |||
476 | /** |
||
477 | * Get the code ventil achat. |
||
478 | * |
||
479 | * @return string|null Returns the code ventil achat. |
||
480 | */ |
||
481 | public function getCodeVentilAchat(): ?string{ |
||
484 | |||
485 | /** |
||
486 | * Get the code ventil vente. |
||
487 | * |
||
488 | * @return string|null Returns the code ventil vente. |
||
489 | */ |
||
490 | public function getCodeVentilVente(): ?string{ |
||
493 | |||
494 | /** |
||
495 | * Get the coef. |
||
496 | * |
||
497 | * @return float|null Returns the coef. |
||
498 | */ |
||
499 | public function getCoef(): ?float{ |
||
502 | |||
503 | /** |
||
504 | * Get the date creation. |
||
505 | * |
||
506 | * @return DateTime|null Returns the date creation. |
||
507 | */ |
||
508 | public function getDateCreation(): ?DateTime{ |
||
511 | |||
512 | /** |
||
513 | * Get the date modification. |
||
514 | * |
||
515 | * @return DateTime|null Returns the date modification. |
||
516 | */ |
||
517 | public function getDateModification(): ?DateTime{ |
||
520 | |||
521 | /** |
||
522 | * Get the depuis deb fac. |
||
523 | * |
||
524 | * @return bool|null Returns the depuis deb fac. |
||
525 | */ |
||
526 | public function getDepuisDebFac(): ?bool{ |
||
529 | |||
530 | /** |
||
531 | * Get the dernier prix achat. |
||
532 | * |
||
533 | * @return float|null Returns the dernier prix achat. |
||
534 | */ |
||
535 | public function getDernierPrixAchat(): ?float{ |
||
538 | |||
539 | /** |
||
540 | * Get the designation. |
||
541 | * |
||
542 | * @return string|null Returns the designation. |
||
543 | */ |
||
544 | public function getDesignation(): ?string{ |
||
547 | |||
548 | /** |
||
549 | * Get the designation2. |
||
550 | * |
||
551 | * @return string|null Returns the designation2. |
||
552 | */ |
||
553 | public function getDesignation2(): ?string{ |
||
556 | |||
557 | /** |
||
558 | * Get the designation3. |
||
559 | * |
||
560 | * @return string|null Returns the designation3. |
||
561 | */ |
||
562 | public function getDesignation3(): ?string{ |
||
565 | |||
566 | /** |
||
567 | * Get the designation rtf. |
||
568 | * |
||
569 | * @return string|null Returns the designation rtf. |
||
570 | */ |
||
571 | public function getDesignationRtf(): ?string{ |
||
574 | |||
575 | /** |
||
576 | * Get the famille article. |
||
577 | * |
||
578 | * @return string|null Returns the famille article. |
||
579 | */ |
||
580 | public function getFamilleArticle(): ?string{ |
||
583 | |||
584 | /** |
||
585 | * Get the imprimer dans pied. |
||
586 | * |
||
587 | * @return bool|null Returns the imprimer dans pied. |
||
588 | */ |
||
589 | public function getImprimerDansPied(): ?bool{ |
||
592 | |||
593 | /** |
||
594 | * Get the montant unitaire taxe. |
||
595 | * |
||
596 | * @return float|null Returns the montant unitaire taxe. |
||
597 | */ |
||
598 | public function getMontantUnitaireTaxe(): ?float{ |
||
601 | |||
602 | /** |
||
603 | * Get the mot cle dans pied. |
||
604 | * |
||
605 | * @return string|null Returns the mot cle dans pied. |
||
606 | */ |
||
607 | public function getMotCleDansPied(): ?string{ |
||
610 | |||
611 | /** |
||
612 | * Get the ne pas reviser. |
||
613 | * |
||
614 | * @return bool|null Returns the ne pas reviser. |
||
615 | */ |
||
616 | public function getNePasReviser(): ?bool{ |
||
619 | |||
620 | /** |
||
621 | * Get the nombre echeances. |
||
622 | * |
||
623 | * @return string|null Returns the nombre echeances. |
||
624 | */ |
||
625 | public function getNombreEcheances(): ?string{ |
||
628 | |||
629 | /** |
||
630 | * Get the numero pj. |
||
631 | * |
||
632 | * @return int|null Returns the numero pj. |
||
633 | */ |
||
634 | public function getNumeroPj(): ?int{ |
||
637 | |||
638 | /** |
||
639 | * Get the pamp. |
||
640 | * |
||
641 | * @return float|null Returns the pamp. |
||
642 | */ |
||
643 | public function getPamp(): ?float{ |
||
646 | |||
647 | /** |
||
648 | * Get the poste rent. |
||
649 | * |
||
650 | * @return string|null Returns the poste rent. |
||
651 | */ |
||
652 | public function getPosteRent(): ?string{ |
||
655 | |||
656 | /** |
||
657 | * Get the prix net. |
||
658 | * |
||
659 | * @return bool|null Returns the prix net. |
||
660 | */ |
||
661 | public function getPrixNet(): ?bool{ |
||
664 | |||
665 | /** |
||
666 | * Get the prix revient. |
||
667 | * |
||
668 | * @return float|null Returns the prix revient. |
||
669 | */ |
||
670 | public function getPrixRevient(): ?float{ |
||
673 | |||
674 | /** |
||
675 | * Get the prix vente. |
||
676 | * |
||
677 | * @return float|null Returns the prix vente. |
||
678 | */ |
||
679 | public function getPrixVente(): ?float{ |
||
682 | |||
683 | /** |
||
684 | * Get the prix vente euros. |
||
685 | * |
||
686 | * @return float|null Returns the prix vente euros. |
||
687 | */ |
||
688 | public function getPrixVenteEuros(): ?float{ |
||
691 | |||
692 | /** |
||
693 | * Get the produit. |
||
694 | * |
||
695 | * @return bool|null Returns the produit. |
||
696 | */ |
||
697 | public function getProduit(): ?bool{ |
||
700 | |||
701 | /** |
||
702 | * Get the produit chimique. |
||
703 | * |
||
704 | * @return bool|null Returns the produit chimique. |
||
705 | */ |
||
706 | public function getProduitChimique(): ?bool{ |
||
709 | |||
710 | /** |
||
711 | * Get the px facture. |
||
712 | * |
||
713 | * @return bool|null Returns the px facture. |
||
714 | */ |
||
715 | public function getPxFacture(): ?bool{ |
||
718 | |||
719 | /** |
||
720 | * Get the qte stock mini. |
||
721 | * |
||
722 | * @return float|null Returns the qte stock mini. |
||
723 | */ |
||
724 | public function getQteStockMini(): ?float{ |
||
727 | |||
728 | /** |
||
729 | * Get the qte stock reel. |
||
730 | * |
||
731 | * @return float|null Returns the qte stock reel. |
||
732 | */ |
||
733 | public function getQteStockReel(): ?float{ |
||
736 | |||
737 | /** |
||
738 | * Get the soumis escompte. |
||
739 | * |
||
740 | * @return bool|null Returns the soumis escompte. |
||
741 | */ |
||
742 | public function getSoumisEscompte(): ?bool{ |
||
745 | |||
746 | /** |
||
747 | * Get the suivi stock. |
||
748 | * |
||
749 | * @return bool|null Returns the suivi stock. |
||
750 | */ |
||
751 | public function getSuiviStock(): ?bool{ |
||
754 | |||
755 | /** |
||
756 | * Get the taux escompte. |
||
757 | * |
||
758 | * @return float|null Returns the taux escompte. |
||
759 | */ |
||
760 | public function getTauxEscompte(): ?float{ |
||
763 | |||
764 | /** |
||
765 | * Get the type article. |
||
766 | * |
||
767 | * @return string|null Returns the type article. |
||
768 | */ |
||
769 | public function getTypeArticle(): ?string{ |
||
772 | |||
773 | /** |
||
774 | * Get the variante. |
||
775 | * |
||
776 | * @return bool|null Returns the variante. |
||
777 | */ |
||
778 | public function getVariante(): ?bool{ |
||
781 | |||
782 | /** |
||
783 | * Get the ventil marge. |
||
784 | * |
||
785 | * @return bool|null Returns the ventil marge. |
||
786 | */ |
||
787 | public function getVentilMarge(): ?bool{ |
||
790 | |||
791 | /** |
||
792 | * Get the visu dans att fisc. |
||
793 | * |
||
794 | * @return bool|null Returns the visu dans att fisc. |
||
795 | */ |
||
796 | public function getVisuDansAttFisc(): ?bool{ |
||
799 | |||
800 | /** |
||
801 | * Set the actif. |
||
802 | * |
||
803 | * @param bool|null $actif The actif. |
||
804 | * @return Articles Returns this Articles. |
||
805 | */ |
||
806 | public function setActif(?bool $actif): Articles { |
||
810 | |||
811 | /** |
||
812 | * Set the article remplacement. |
||
813 | * |
||
814 | * @param string|null $articleRemplacement The article remplacement. |
||
815 | * @return Articles Returns this Articles. |
||
816 | */ |
||
817 | public function setArticleRemplacement(?string $articleRemplacement): Articles { |
||
821 | |||
822 | /** |
||
823 | * Set the classification four. |
||
824 | * |
||
825 | * @param string|null $classificationFour The classification four. |
||
826 | * @return Articles Returns this Articles. |
||
827 | */ |
||
828 | public function setClassificationFour(?string $classificationFour): Articles { |
||
832 | |||
833 | /** |
||
834 | * Set the classification util. |
||
835 | * |
||
836 | * @param string|null $classificationUtil The classification util. |
||
837 | * @return Articles Returns this Articles. |
||
838 | */ |
||
839 | public function setClassificationUtil(?string $classificationUtil): Articles { |
||
843 | |||
844 | /** |
||
845 | * Set the code affect rent. |
||
846 | * |
||
847 | * @param string|null $codeAffectRent The code affect rent. |
||
848 | * @return Articles Returns this Articles. |
||
849 | */ |
||
850 | public function setCodeAffectRent(?string $codeAffectRent): Articles { |
||
854 | |||
855 | /** |
||
856 | * Set the code anal achat. |
||
857 | * |
||
858 | * @param string|null $codeAnalAchat The code anal achat. |
||
859 | * @return Articles Returns this Articles. |
||
860 | */ |
||
861 | public function setCodeAnalAchat(?string $codeAnalAchat): Articles { |
||
865 | |||
866 | /** |
||
867 | * Set the code anal vente. |
||
868 | * |
||
869 | * @param string|null $codeAnalVente The code anal vente. |
||
870 | * @return Articles Returns this Articles. |
||
871 | */ |
||
872 | public function setCodeAnalVente(?string $codeAnalVente): Articles { |
||
876 | |||
877 | /** |
||
878 | * Set the code article. |
||
879 | * |
||
880 | * @param string|null $codeArticle The code article. |
||
881 | * @return Articles Returns this Articles. |
||
882 | */ |
||
883 | public function setCodeArticle(?string $codeArticle): Articles { |
||
887 | |||
888 | /** |
||
889 | * Set the code fournisseur. |
||
890 | * |
||
891 | * @param string|null $codeFournisseur The code fournisseur. |
||
892 | * @return Articles Returns this Articles. |
||
893 | */ |
||
894 | public function setCodeFournisseur(?string $codeFournisseur): Articles { |
||
898 | |||
899 | /** |
||
900 | * Set the code tva achat. |
||
901 | * |
||
902 | * @param string|null $codeTvaAchat The code tva achat. |
||
903 | * @return Articles Returns this Articles. |
||
904 | */ |
||
905 | public function setCodeTvaAchat(?string $codeTvaAchat): Articles { |
||
909 | |||
910 | /** |
||
911 | * Set the code tva vente. |
||
912 | * |
||
913 | * @param string|null $codeTvaVente The code tva vente. |
||
914 | * @return Articles Returns this Articles. |
||
915 | */ |
||
916 | public function setCodeTvaVente(?string $codeTvaVente): Articles { |
||
920 | |||
921 | /** |
||
922 | * Set the code unite. |
||
923 | * |
||
924 | * @param string|null $codeUnite The code unite. |
||
925 | * @return Articles Returns this Articles. |
||
926 | */ |
||
927 | public function setCodeUnite(?string $codeUnite): Articles { |
||
931 | |||
932 | /** |
||
933 | * Set the code ventil achat. |
||
934 | * |
||
935 | * @param string|null $codeVentilAchat The code ventil achat. |
||
936 | * @return Articles Returns this Articles. |
||
937 | */ |
||
938 | public function setCodeVentilAchat(?string $codeVentilAchat): Articles { |
||
942 | |||
943 | /** |
||
944 | * Set the code ventil vente. |
||
945 | * |
||
946 | * @param string|null $codeVentilVente The code ventil vente. |
||
947 | * @return Articles Returns this Articles. |
||
948 | */ |
||
949 | public function setCodeVentilVente(?string $codeVentilVente): Articles { |
||
953 | |||
954 | /** |
||
955 | * Set the coef. |
||
956 | * |
||
957 | * @param float|null $coef The coef. |
||
958 | * @return Articles Returns this Articles. |
||
959 | */ |
||
960 | public function setCoef(?float $coef): Articles { |
||
964 | |||
965 | /** |
||
966 | * Set the date creation. |
||
967 | * |
||
968 | * @param DateTime|null $dateCreation The date creation. |
||
969 | * @return Articles Returns this Articles. |
||
970 | */ |
||
971 | public function setDateCreation(?DateTime $dateCreation): Articles { |
||
975 | |||
976 | /** |
||
977 | * Set the date modification. |
||
978 | * |
||
979 | * @param DateTime|null $dateModification The date modification. |
||
980 | * @return Articles Returns this Articles. |
||
981 | */ |
||
982 | public function setDateModification(?DateTime $dateModification): Articles { |
||
986 | |||
987 | /** |
||
988 | * Set the depuis deb fac. |
||
989 | * |
||
990 | * @param bool|null $depuisDebFac The depuis deb fac. |
||
991 | * @return Articles Returns this Articles. |
||
992 | */ |
||
993 | public function setDepuisDebFac(?bool $depuisDebFac): Articles { |
||
997 | |||
998 | /** |
||
999 | * Set the dernier prix achat. |
||
1000 | * |
||
1001 | * @param float|null $dernierPrixAchat The dernier prix achat. |
||
1002 | * @return Articles Returns this Articles. |
||
1003 | */ |
||
1004 | public function setDernierPrixAchat(?float $dernierPrixAchat): Articles { |
||
1008 | |||
1009 | /** |
||
1010 | * Set the designation. |
||
1011 | * |
||
1012 | * @param string|null $designation The designation. |
||
1013 | * @return Articles Returns this Articles. |
||
1014 | */ |
||
1015 | public function setDesignation(?string $designation): Articles { |
||
1019 | |||
1020 | /** |
||
1021 | * Set the designation2. |
||
1022 | * |
||
1023 | * @param string|null $designation2 The designation2. |
||
1024 | * @return Articles Returns this Articles. |
||
1025 | */ |
||
1026 | public function setDesignation2(?string $designation2): Articles { |
||
1030 | |||
1031 | /** |
||
1032 | * Set the designation3. |
||
1033 | * |
||
1034 | * @param string|null $designation3 The designation3. |
||
1035 | * @return Articles Returns this Articles. |
||
1036 | */ |
||
1037 | public function setDesignation3(?string $designation3): Articles { |
||
1041 | |||
1042 | /** |
||
1043 | * Set the designation rtf. |
||
1044 | * |
||
1045 | * @param string|null $designationRtf The designation rtf. |
||
1046 | * @return Articles Returns this Articles. |
||
1047 | */ |
||
1048 | public function setDesignationRtf(?string $designationRtf): Articles { |
||
1052 | |||
1053 | /** |
||
1054 | * Set the famille article. |
||
1055 | * |
||
1056 | * @param string|null $familleArticle The famille article. |
||
1057 | * @return Articles Returns this Articles. |
||
1058 | */ |
||
1059 | public function setFamilleArticle(?string $familleArticle): Articles { |
||
1063 | |||
1064 | /** |
||
1065 | * Set the imprimer dans pied. |
||
1066 | * |
||
1067 | * @param bool|null $imprimerDansPied The imprimer dans pied. |
||
1068 | * @return Articles Returns this Articles. |
||
1069 | */ |
||
1070 | public function setImprimerDansPied(?bool $imprimerDansPied): Articles { |
||
1074 | |||
1075 | /** |
||
1076 | * Set the montant unitaire taxe. |
||
1077 | * |
||
1078 | * @param float|null $montantUnitaireTaxe The montant unitaire taxe. |
||
1079 | * @return Articles Returns this Articles. |
||
1080 | */ |
||
1081 | public function setMontantUnitaireTaxe(?float $montantUnitaireTaxe): Articles { |
||
1085 | |||
1086 | /** |
||
1087 | * Set the mot cle dans pied. |
||
1088 | * |
||
1089 | * @param string|null $motCleDansPied The mot cle dans pied. |
||
1090 | * @return Articles Returns this Articles. |
||
1091 | */ |
||
1092 | public function setMotCleDansPied(?string $motCleDansPied): Articles { |
||
1096 | |||
1097 | /** |
||
1098 | * Set the ne pas reviser. |
||
1099 | * |
||
1100 | * @param bool|null $nePasReviser The ne pas reviser. |
||
1101 | * @return Articles Returns this Articles. |
||
1102 | */ |
||
1103 | public function setNePasReviser(?bool $nePasReviser): Articles { |
||
1107 | |||
1108 | /** |
||
1109 | * Set the nombre echeances. |
||
1110 | * |
||
1111 | * @param string|null $nombreEcheances The nombre echeances. |
||
1112 | * @return Articles Returns this Articles. |
||
1113 | */ |
||
1114 | public function setNombreEcheances(?string $nombreEcheances): Articles { |
||
1118 | |||
1119 | /** |
||
1120 | * Set the numero pj. |
||
1121 | * |
||
1122 | * @param int|null $numeroPj The numero pj. |
||
1123 | * @return Articles Returns this Articles. |
||
1124 | */ |
||
1125 | public function setNumeroPj(?int $numeroPj): Articles { |
||
1129 | |||
1130 | /** |
||
1131 | * Set the pamp. |
||
1132 | * |
||
1133 | * @param float|null $pamp The pamp. |
||
1134 | * @return Articles Returns this Articles. |
||
1135 | */ |
||
1136 | public function setPamp(?float $pamp): Articles { |
||
1140 | |||
1141 | /** |
||
1142 | * Set the poste rent. |
||
1143 | * |
||
1144 | * @param string|null $posteRent The poste rent. |
||
1145 | * @return Articles Returns this Articles. |
||
1146 | */ |
||
1147 | public function setPosteRent(?string $posteRent): Articles { |
||
1151 | |||
1152 | /** |
||
1153 | * Set the prix net. |
||
1154 | * |
||
1155 | * @param bool|null $prixNet The prix net. |
||
1156 | * @return Articles Returns this Articles. |
||
1157 | */ |
||
1158 | public function setPrixNet(?bool $prixNet): Articles { |
||
1162 | |||
1163 | /** |
||
1164 | * Set the prix revient. |
||
1165 | * |
||
1166 | * @param float|null $prixRevient The prix revient. |
||
1167 | * @return Articles Returns this Articles. |
||
1168 | */ |
||
1169 | public function setPrixRevient(?float $prixRevient): Articles { |
||
1173 | |||
1174 | /** |
||
1175 | * Set the prix vente. |
||
1176 | * |
||
1177 | * @param float|null $prixVente The prix vente. |
||
1178 | * @return Articles Returns this Articles. |
||
1179 | */ |
||
1180 | public function setPrixVente(?float $prixVente): Articles { |
||
1184 | |||
1185 | /** |
||
1186 | * Set the prix vente euros. |
||
1187 | * |
||
1188 | * @param float|null $prixVenteEuros The prix vente euros. |
||
1189 | * @return Articles Returns this Articles. |
||
1190 | */ |
||
1191 | public function setPrixVenteEuros(?float $prixVenteEuros): Articles { |
||
1195 | |||
1196 | /** |
||
1197 | * Set the produit. |
||
1198 | * |
||
1199 | * @param bool|null $produit The produit. |
||
1200 | * @return Articles Returns this Articles. |
||
1201 | */ |
||
1202 | public function setProduit(?bool $produit): Articles { |
||
1206 | |||
1207 | /** |
||
1208 | * Set the produit chimique. |
||
1209 | * |
||
1210 | * @param bool|null $produitChimique The produit chimique. |
||
1211 | * @return Articles Returns this Articles. |
||
1212 | */ |
||
1213 | public function setProduitChimique(?bool $produitChimique): Articles { |
||
1217 | |||
1218 | /** |
||
1219 | * Set the px facture. |
||
1220 | * |
||
1221 | * @param bool|null $pxFacture The px facture. |
||
1222 | * @return Articles Returns this Articles. |
||
1223 | */ |
||
1224 | public function setPxFacture(?bool $pxFacture): Articles { |
||
1228 | |||
1229 | /** |
||
1230 | * Set the qte stock mini. |
||
1231 | * |
||
1232 | * @param float|null $qteStockMini The qte stock mini. |
||
1233 | * @return Articles Returns this Articles. |
||
1234 | */ |
||
1235 | public function setQteStockMini(?float $qteStockMini): Articles { |
||
1239 | |||
1240 | /** |
||
1241 | * Set the qte stock reel. |
||
1242 | * |
||
1243 | * @param float|null $qteStockReel The qte stock reel. |
||
1244 | * @return Articles Returns this Articles. |
||
1245 | */ |
||
1246 | public function setQteStockReel(?float $qteStockReel): Articles { |
||
1250 | |||
1251 | /** |
||
1252 | * Set the soumis escompte. |
||
1253 | * |
||
1254 | * @param bool|null $soumisEscompte The soumis escompte. |
||
1255 | * @return Articles Returns this Articles. |
||
1256 | */ |
||
1257 | public function setSoumisEscompte(?bool $soumisEscompte): Articles { |
||
1261 | |||
1262 | /** |
||
1263 | * Set the suivi stock. |
||
1264 | * |
||
1265 | * @param bool|null $suiviStock The suivi stock. |
||
1266 | * @return Articles Returns this Articles. |
||
1267 | */ |
||
1268 | public function setSuiviStock(?bool $suiviStock): Articles { |
||
1272 | |||
1273 | /** |
||
1274 | * Set the taux escompte. |
||
1275 | * |
||
1276 | * @param float|null $tauxEscompte The taux escompte. |
||
1277 | * @return Articles Returns this Articles. |
||
1278 | */ |
||
1279 | public function setTauxEscompte(?float $tauxEscompte): Articles { |
||
1283 | |||
1284 | /** |
||
1285 | * Set the type article. |
||
1286 | * |
||
1287 | * @param string|null $typeArticle The type article. |
||
1288 | * @return Articles Returns this Articles. |
||
1289 | */ |
||
1290 | public function setTypeArticle(?string $typeArticle): Articles { |
||
1294 | |||
1295 | /** |
||
1296 | * Set the variante. |
||
1297 | * |
||
1298 | * @param bool|null $variante The variante. |
||
1299 | * @return Articles Returns this Articles. |
||
1300 | */ |
||
1301 | public function setVariante(?bool $variante): Articles { |
||
1305 | |||
1306 | /** |
||
1307 | * Set the ventil marge. |
||
1308 | * |
||
1309 | * @param bool|null $ventilMarge The ventil marge. |
||
1310 | * @return Articles Returns this Articles. |
||
1311 | */ |
||
1312 | public function setVentilMarge(?bool $ventilMarge): Articles { |
||
1316 | |||
1317 | /** |
||
1318 | * Set the visu dans att fisc. |
||
1319 | * |
||
1320 | * @param bool|null $visuDansAttFisc The visu dans att fisc. |
||
1321 | * @return Articles Returns this Articles. |
||
1322 | */ |
||
1323 | public function setVisuDansAttFisc(?bool $visuDansAttFisc): Articles { |
||
1327 | } |
||
1328 |