diff options
Diffstat (limited to 'src/model/CESU.php')
-rw-r--r-- | src/model/CESU.php | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/model/CESU.php b/src/model/CESU.php index dbb4023..a8aa1e8 100644 --- a/src/model/CESU.php +++ b/src/model/CESU.php | |||
@@ -6,18 +6,26 @@ class CESU extends Model | |||
6 | //~ const TABLE = 'cesu'; | 6 | //~ const TABLE = 'cesu'; |
7 | 7 | ||
8 | // lecture des données ou hydratation | 8 | // lecture des données ou hydratation |
9 | protected $ID; | ||
9 | protected $ID_presta; | 10 | protected $ID_presta; |
10 | protected $taches; | 11 | protected $taches; |
11 | protected $duree_travail; | 12 | protected $duree_travail; |
12 | protected $salaire; | 13 | protected $salaire; |
13 | 14 | ||
14 | //~ use ModelChildren; | ||
15 | |||
16 | public function __construct() | 15 | public function __construct() |
17 | { | 16 | { |
18 | $this->table = strtolower(__CLASS__); // cesu | 17 | $this->table = strtolower(__CLASS__); // cesu |
19 | } | 18 | } |
20 | 19 | ||
20 | public function getAllWithWindowFields(): array // différent de Model::getAll() qui retourne get_object_vars($this) | ||
21 | { | ||
22 | return [ | ||
23 | "Numéro CESU:" => $this->ID, | ||
24 | "Tâche effectuée:" => $this->taches, | ||
25 | "Durée du travail:" => $this->duree_travail, | ||
26 | "Salaire:" => $this->salaire]; | ||
27 | } | ||
28 | |||
21 | // setters | 29 | // setters |
22 | public function setIDPresta(int $value) | 30 | public function setIDPresta(int $value) |
23 | { | 31 | { |