diff options
| author | polo <ordipolo@gmx.fr> | 2022-12-14 12:55:46 +0100 |
|---|---|---|
| committer | polo <ordipolo@gmx.fr> | 2022-12-14 12:55:46 +0100 |
| commit | ff14091476a35de16a9ea3208501040cfae93a06 (patch) | |
| tree | 89ebd00ad68fbb97aac71ef8a2972748f82dee0d /src/model/CESU.php | |
| parent | a45a3e0345890b9df3c5fa7c82966a64491eca02 (diff) | |
| download | AppliGestionPHP-ff14091476a35de16a9ea3208501040cfae93a06.tar.gz AppliGestionPHP-ff14091476a35de16a9ea3208501040cfae93a06.tar.bz2 AppliGestionPHP-ff14091476a35de16a9ea3208501040cfae93a06.zip | |
MODEL + reorganisation
Diffstat (limited to 'src/model/CESU.php')
| -rw-r--r-- | src/model/CESU.php | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/src/model/CESU.php b/src/model/CESU.php new file mode 100644 index 0000000..4679da2 --- /dev/null +++ b/src/model/CESU.php | |||
| @@ -0,0 +1,46 @@ | |||
| 1 | <?php | ||
| 2 | // model/CESU.php | ||
| 3 | |||
| 4 | class CESU extends Model | ||
| 5 | { | ||
| 6 | const TABLE = 'cesu'; | ||
| 7 | |||
| 8 | // lecture des données ou hydratation | ||
| 9 | private $ID; | ||
| 10 | private $ID_presta; | ||
| 11 | private $taches; | ||
| 12 | private $duree_travail; | ||
| 13 | private $salaire; | ||
| 14 | |||
| 15 | public function __construct() | ||
| 16 | { | ||
| 17 | $this->table = self::TABLE; // => Model::$table | ||
| 18 | } | ||
| 19 | |||
| 20 | // setters | ||
| 21 | public function setID(int $value) | ||
| 22 | { | ||
| 23 | $this->ID = $value; | ||
| 24 | return($this); | ||
| 25 | } | ||
| 26 | public function setIDPresta(int $value) | ||
| 27 | { | ||
| 28 | $this->ID_presta = $value; | ||
| 29 | return($this); | ||
| 30 | } | ||
| 31 | public function setTaches(string $value) | ||
| 32 | { | ||
| 33 | $this->taches = $value; | ||
| 34 | return($this); | ||
| 35 | } | ||
| 36 | public function setDureeTravail(string $value) | ||
| 37 | { | ||
| 38 | $this->duree_travail = $value; | ||
| 39 | return($this); | ||
| 40 | } | ||
| 41 | public function setSalaire(float $value) | ||
| 42 | { | ||
| 43 | $this->salaire = $value; | ||
| 44 | return($this); | ||
| 45 | } | ||
| 46 | } | ||
