diff options
Diffstat (limited to 'src/model/CESU.php')
| -rw-r--r-- | src/model/CESU.php | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/src/model/CESU.php b/src/model/CESU.php index 28a54a8..2be89c0 100644 --- a/src/model/CESU.php +++ b/src/model/CESU.php | |||
| @@ -3,28 +3,33 @@ | |||
| 3 | 3 | ||
| 4 | class CESU extends Model | 4 | class CESU extends Model |
| 5 | { | 5 | { |
| 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 | private $ID; | 9 | private $ID_cesu; |
| 10 | private $ID_presta; | ||
| 11 | private $taches; | 10 | private $taches; |
| 12 | private $duree_travail; | 11 | private $duree_travail; |
| 13 | private $salaire; | 12 | private $salaire; |
| 14 | 13 | ||
| 15 | use ModelChildren; | 14 | use ModelChildren; |
| 16 | 15 | ||
| 17 | // setters | 16 | public function __construct(int $client_ID) |
| 18 | public function setID(int $value) | ||
| 19 | { | 17 | { |
| 20 | $this->ID = $value; | 18 | parent::__construct($client_ID); |
| 21 | return($this); | 19 | $this->type == 'cesu'; |
| 22 | } | 20 | } |
| 23 | public function setIDPresta(int $value) | 21 | |
| 22 | // setters | ||
| 23 | public function setIDCesu(int $value) | ||
| 24 | { | 24 | { |
| 25 | $this->ID_presta = $value; | 25 | $this->ID_cesu = $value; |
| 26 | return($this); | 26 | return($this); |
| 27 | } | 27 | } |
| 28 | //~ public function setIDPresta(int $value) | ||
| 29 | //~ { | ||
| 30 | //~ $this->ID_presta = $value; | ||
| 31 | //~ return($this); | ||
| 32 | //~ } | ||
| 28 | public function setTaches(string $value) | 33 | public function setTaches(string $value) |
| 29 | { | 34 | { |
| 30 | $this->taches = $value; | 35 | $this->taches = $value; |
