From bf6655a534a6775d30cafa67bd801276bda1d98d Mon Sep 17 00:00:00 2001 From: polo Date: Tue, 13 Aug 2024 23:45:21 +0200 Subject: =?UTF-8?q?VERSION=200.2=20doctrine=20ORM=20et=20entit=C3=A9s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Latex.php | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) (limited to 'src/Latex.php') diff --git a/src/Latex.php b/src/Latex.php index f7f18ea..b254551 100644 --- a/src/Latex.php +++ b/src/Latex.php @@ -5,12 +5,12 @@ abstract class Latex { - protected $type = ''; - protected $file_name = ''; - protected $latex_path = ''; - protected $pdf_path = ''; - protected $data = []; // données à insérer dans le template - protected $latex = ''; // latex pur + protected string $type; + protected string $file_name; + protected string $latex_path; + protected string $pdf_path; + protected array $data = []; // données à insérer dans le template + protected string $latex; // latex pur static function makeInstance(string $type) { @@ -98,16 +98,13 @@ abstract class Latex abstract class PrestaLatex extends Latex { - protected $Date; // sera un type "Dates" - - //~ public function __construct() - //~ {} + protected Dates $Date; public function setData(Object $Object): self { $this->data = array_merge($this->data, $Object->getAll()); // nécessite des tableaux associatifs - if(get_class($Object) === 'Prestations') + if(get_class($Object) === 'Prestation') { $this->file_name = $Object->getCodePresta() . '.tex'; $this->makeDateInstance($Object->getDate()); // paramètre = int -- cgit v1.2.3