From 9bdfb5196a2ee1cbfc403702e8d2ef88076d366f Mon Sep 17 00:00:00 2001 From: polo Date: Wed, 5 Jul 2023 01:39:29 +0200 Subject: classe Latex "fonctionnelle" --- src/model/Prestations.php | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) (limited to 'src/model/Prestations.php') diff --git a/src/model/Prestations.php b/src/model/Prestations.php index 94dd805..22865df 100644 --- a/src/model/Prestations.php +++ b/src/model/Prestations.php @@ -33,7 +33,7 @@ class Prestations extends Model { return $this->code_presta; } - public function getDate(): int + public function getDate(): int // timestamp unix { return $this->date; } @@ -48,7 +48,7 @@ class Prestations extends Model public function setIDClient(int $value) { $this->ID_client = $value; - return($this); + return $this; } //~ public function setCombientiemeFois(int $value) //~ { @@ -58,37 +58,29 @@ class Prestations extends Model public function setCodePresta(string $value) { $this->code_presta = $value; - return($this); + return $this; } public function setDate(int $value) { $this->date = $value; - return($this); + return $this; } public function setTypePresta(string $value) { $this->type_presta = $value; - return($this); + return $this; } public function setModePaiement(string $value) { $this->mode_paiement = $value; - return($this); + return $this; } public function setCommentaires(string $value) { $this->commentaires = $value; - return($this); + return $this; } - //~ protected function combientiemeFois() - //~ { - //~ // on récupère un tableau contenant toutes les prestations d'un client tous types confondus (devis, facture, cesu, location, enregistrement sans vente) - //~ $array = $this->find(['ID_client' => $this->ID_client]); - //~ //$this->combientieme_fois = count($array) + 1; - //~ return count($array) + 1; - //~ } - // code client = année-mois-jour-codeclient-combientièmefois public function makeCodePresta(Dates $Date, string $code_client) { -- cgit v1.2.3