diff options
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 | } | ||
