summaryrefslogtreecommitdiff
path: root/src/model/CESU.php
diff options
context:
space:
mode:
authorpolo <contact@ordipolo.fr>2023-09-02 11:03:16 +0200
committerpolo <contact@ordipolo.fr>2023-09-02 11:03:16 +0200
commit45262760a7d575a9d612cc2056e66bf105e43df8 (patch)
tree4d22f2e19f67f4a6dcdd2a4236fa6f6a0dd7f22a /src/model/CESU.php
parent45f1b99a1060ee43deb6055faef1f8b16b5d80a2 (diff)
downloadAppliGestionPHP-45262760a7d575a9d612cc2056e66bf105e43df8.zip
section 3 ok (manque les prestas non-vendues)
Diffstat (limited to 'src/model/CESU.php')
-rw-r--r--src/model/CESU.php16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/model/CESU.php b/src/model/CESU.php
index a8aa1e8..f6c6630 100644
--- a/src/model/CESU.php
+++ b/src/model/CESU.php
@@ -20,11 +20,25 @@ class CESU extends Model
20 public function getAllWithWindowFields(): array // différent de Model::getAll() qui retourne get_object_vars($this) 20 public function getAllWithWindowFields(): array // différent de Model::getAll() qui retourne get_object_vars($this)
21 { 21 {
22 return [ 22 return [
23 "Numéro CESU:" => $this->ID,
24 "Tâche effectuée:" => $this->taches, 23 "Tâche effectuée:" => $this->taches,
25 "Durée du travail:" => $this->duree_travail, 24 "Durée du travail:" => $this->duree_travail,
26 "Salaire:" => $this->salaire]; 25 "Salaire:" => $this->salaire];
27 } 26 }
27 public function set(string $entry, string $input)
28 {
29 switch($entry)
30 {
31 case "Tâche effectuée:":
32 $this->setTaches($input);
33 break;
34 case "Durée du travail:":
35 $this->setDureeTravail($input);
36 break;
37 case "Salaire:":
38 $this->setSalaire($input);
39 break;
40 }
41 }
28 42
29 // setters 43 // setters
30 public function setIDPresta(int $value) 44 public function setIDPresta(int $value)