diff options
| author | polo <ordipolo@gmx.fr> | 2026-10-09 15:09:38 +0200 |
|---|---|---|
| committer | polo <ordipolo@gmx.fr> | 2026-10-09 15:09:38 +0200 |
| commit | 39d4558eaf5fa5fd6060a0f202b22bcec5a982dc (patch) | |
| tree | aa3d078c4d9a12fe05602510581f7360e2afa504 /src/Latex.php | |
| parent | 32f22413786763d4d128ee286cc13700e6b0446f (diff) | |
| download | AppliGestionPHP-39d4558eaf5fa5fd6060a0f202b22bcec5a982dc.tar.gz AppliGestionPHP-39d4558eaf5fa5fd6060a0f202b22bcec5a982dc.tar.bz2 AppliGestionPHP-39d4558eaf5fa5fd6060a0f202b22bcec5a982dc.zip | |
variables déplacées dans Config, suppressions constructeurs Latex.php, ébauche de section 6_advertising, un peu de typage
Diffstat (limited to 'src/Latex.php')
| -rw-r--r-- | src/Latex.php | 27 |
1 files changed, 8 insertions, 19 deletions
diff --git a/src/Latex.php b/src/Latex.php index b254551..261d35e 100644 --- a/src/Latex.php +++ b/src/Latex.php | |||
| @@ -150,31 +150,21 @@ abstract class PrestaLatex extends Latex | |||
| 150 | } | 150 | } |
| 151 | class DevisLatex extends PrestaLatex // extends Latex | 151 | class DevisLatex extends PrestaLatex // extends Latex |
| 152 | { | 152 | { |
| 153 | public function __construct() | 153 | protected string $type = 'devis'; |
| 154 | { | ||
| 155 | $this->type = 'devis'; | ||
| 156 | } | ||
| 157 | } | 154 | } |
| 158 | class FactureLatex extends PrestaLatex // extends Latex | 155 | class FactureLatex extends PrestaLatex // extends Latex |
| 159 | { | 156 | { |
| 160 | public function __construct() | 157 | protected string $type = 'facture'; |
| 161 | { | ||
| 162 | $this->type = 'facture'; | ||
| 163 | } | ||
| 164 | } | 158 | } |
| 165 | class LocationLatex extends PrestaLatex // extends Latex | 159 | class LocationLatex extends PrestaLatex // extends Latex |
| 166 | { | 160 | { |
| 167 | public function __construct() | 161 | protected string $type = 'location'; |
| 168 | { | ||
| 169 | $this->type = 'location'; | ||
| 170 | } | ||
| 171 | } | 162 | } |
| 172 | 163 | ||
| 173 | class EnveloppeRectoLatex extends Latex | 164 | class EnveloppeRectoLatex extends Latex |
| 174 | { | 165 | { |
| 175 | public function __construct() | 166 | protected string $type = 'enveloppe_recto'; |
| 176 | { | 167 | public function __construct(){ |
| 177 | $this->type = 'enveloppe_recto'; | ||
| 178 | $this->latex_path = Config::$latex_path . 'enveloppes_recto/'; | 168 | $this->latex_path = Config::$latex_path . 'enveloppes_recto/'; |
| 179 | $this->pdf_path = Config::$pdf_path . 'enveloppes_recto/'; | 169 | $this->pdf_path = Config::$pdf_path . 'enveloppes_recto/'; |
| 180 | } | 170 | } |
| @@ -194,10 +184,9 @@ class EnveloppeRectoLatex extends Latex | |||
| 194 | } | 184 | } |
| 195 | class EnveloppeVersoLatex extends Latex | 185 | class EnveloppeVersoLatex extends Latex |
| 196 | { | 186 | { |
| 197 | public function __construct() | 187 | protected string $type = 'enveloppe_verso'; |
| 198 | { | 188 | protected string $file_name = 'enveloppe_verso.tex'; |
| 199 | $this->type = 'enveloppe_verso'; | 189 | public function __construct(){ |
| 200 | $this->file_name = 'enveloppe_verso.tex'; | ||
| 201 | $this->latex_path = Config::$latex_path; | 190 | $this->latex_path = Config::$latex_path; |
| 202 | $this->pdf_path = Config::$pdf_path; | 191 | $this->pdf_path = Config::$pdf_path; |
| 203 | } | 192 | } |
