summaryrefslogtreecommitdiff
path: root/src/model/Prestations.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/model/Prestations.php')
-rw-r--r--src/model/Prestations.php14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/model/Prestations.php b/src/model/Prestations.php
index 2f84daa..ddd785b 100644
--- a/src/model/Prestations.php
+++ b/src/model/Prestations.php
@@ -6,20 +6,18 @@ class Prestations extends Model
6 // lecture des données ou hydratation 6 // lecture des données ou hydratation
7 protected $ID; // auto-incrémentée 7 protected $ID; // auto-incrémentée
8 protected $ID_client = 0; 8 protected $ID_client = 0;
9 //~ protected $combientieme_fois = 0;
10 protected $code_presta = ''; 9 protected $code_presta = '';
11 protected $date = 0; // timestamp unix 10 protected $date = 0; // timestamp unix
12 protected $type_presta = ''; 11 protected $type_presta = '';
13 protected $mode_paiement = ''; 12 protected $mode_paiement = '';
14 protected $commentaires = ''; 13 protected $commentaires = '';
15 14
16 use ModelChildren; 15 //~ use ModelChildren;
17 16
18 public function __construct(int $ID_client) 17 public function __construct(int $ID_client)
19 { 18 {
20 $this->table = 'prestations';
21 $this->ID_client = $ID_client; 19 $this->ID_client = $ID_client;
22 //~ $this->combientiemeFois(); 20 $this->table = strtolower(__CLASS__); // prestations
23 } 21 }
24 22
25 // getters 23 // getters
@@ -31,10 +29,10 @@ class Prestations extends Model
31 { 29 {
32 return $this->ID_client; 30 return $this->ID_client;
33 } 31 }
34 //~ public function getCombientiemeFois(): int 32 public function getCodePresta(): string
35 //~ { 33 {
36 //~ return $this->combientieme_fois; 34 return $this->code_presta;
37 //~ } 35 }
38 public function getDate(): int 36 public function getDate(): int
39 { 37 {
40 return $this->date; 38 return $this->date;