summaryrefslogtreecommitdiff
path: root/src/model/CESU.php
diff options
context:
space:
mode:
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)