diff options
Diffstat (limited to 'src/model/Prestations.php')
| -rw-r--r-- | src/model/Prestations.php | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/src/model/Prestations.php b/src/model/Prestations.php new file mode 100644 index 0000000..4f58d70 --- /dev/null +++ b/src/model/Prestations.php | |||
| @@ -0,0 +1,62 @@ | |||
| 1 | <?php | ||
| 2 | // model/Prestations.php | ||
| 3 | |||
| 4 | class Prestations extends Model | ||
| 5 | { | ||
| 6 | // lecture des données ou hydratation | ||
| 7 | private $ID; | ||
| 8 | private $IDClient; | ||
| 9 | private $combientieme_fois; | ||
| 10 | private $code_presta; | ||
| 11 | private $date; | ||
| 12 | private $type; | ||
| 13 | private $mode_paiement; | ||
| 14 | private $commentaires; | ||
| 15 | |||
| 16 | public function __construct() | ||
| 17 | { | ||
| 18 | $this->table = strtolower(__CLASS__); | ||
| 19 | } | ||
| 20 | |||
| 21 | // setters | ||
| 22 | public function setID(int $value) | ||
| 23 | { | ||
| 24 | $this->ID = $value; | ||
| 25 | return($this); | ||
| 26 | } | ||
| 27 | public function setIDClient(int $value) | ||
| 28 | { | ||
| 29 | $this->ID_client = $value; | ||
| 30 | return($this); | ||
| 31 | } | ||
| 32 | public function setCombientiemeFois(int $value) | ||
| 33 | { | ||
| 34 | $this->combientieme_fois = $value; | ||
| 35 | return($this); | ||
| 36 | } | ||
| 37 | public function setCodePresta(string $value) | ||
| 38 | { | ||
| 39 | $this->code_presta = $value; | ||
| 40 | return($this); | ||
| 41 | } | ||
| 42 | public function setDate(int $value) | ||
| 43 | { | ||
| 44 | $this->date = $value; | ||
| 45 | return($this); | ||
| 46 | } | ||
| 47 | public function setType(string $value) | ||
| 48 | { | ||
| 49 | $this->type = $value; | ||
| 50 | return($this); | ||
| 51 | } | ||
| 52 | public function setModePaiement(string $value) | ||
| 53 | { | ||
| 54 | $this->mode_paiement = $value; | ||
| 55 | return($this); | ||
| 56 | } | ||
| 57 | public function setCommentaires(string $value) | ||
| 58 | { | ||
| 59 | $this->commentaires = $value; | ||
| 60 | return($this); | ||
| 61 | } | ||
| 62 | } | ||
