diff options
| author | polo <ordipolo@gmx.fr> | 2022-12-28 05:19:55 +0100 |
|---|---|---|
| committer | polo <ordipolo@gmx.fr> | 2022-12-28 05:19:55 +0100 |
| commit | 1894fc377e6b938ea34df9980567a1634ec6ef48 (patch) | |
| tree | 812db64208797ecbdabbc9673a5247fbc18ebf8b /src/model/CESU.php | |
| parent | 7d564efbccc4b361d2fa2db2902fb35882304aae (diff) | |
| download | AppliGestionPHP-1894fc377e6b938ea34df9980567a1634ec6ef48.tar.gz AppliGestionPHP-1894fc377e6b938ea34df9980567a1634ec6ef48.tar.bz2 AppliGestionPHP-1894fc377e6b938ea34df9980567a1634ec6ef48.zip | |
réorganisation + bientôt finie la section 1
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; |
