summaryrefslogtreecommitdiff
path: root/src/Latex.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Latex.php')
-rw-r--r--src/Latex.php27
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}
151class DevisLatex extends PrestaLatex // extends Latex 151class DevisLatex extends PrestaLatex // extends Latex
152{ 152{
153 public function __construct() 153 protected string $type = 'devis';
154 {
155 $this->type = 'devis';
156 }
157} 154}
158class FactureLatex extends PrestaLatex // extends Latex 155class FactureLatex extends PrestaLatex // extends Latex
159{ 156{
160 public function __construct() 157 protected string $type = 'facture';
161 {
162 $this->type = 'facture';
163 }
164} 158}
165class LocationLatex extends PrestaLatex // extends Latex 159class 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
173class EnveloppeRectoLatex extends Latex 164class 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}
195class EnveloppeVersoLatex extends Latex 185class 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 }