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/Locations.php | |
parent | 7d564efbccc4b361d2fa2db2902fb35882304aae (diff) | |
download | AppliGestionPHP-1894fc377e6b938ea34df9980567a1634ec6ef48.zip |
réorganisation + bientôt finie la section 1
Diffstat (limited to 'src/model/Locations.php')
-rw-r--r-- | src/model/Locations.php | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/src/model/Locations.php b/src/model/Locations.php index b788d43..21e9b09 100644 --- a/src/model/Locations.php +++ b/src/model/Locations.php | |||
@@ -4,8 +4,7 @@ | |||
4 | class Locations extends Model | 4 | class Locations extends Model |
5 | { | 5 | { |
6 | // lecture des données ou hydratation | 6 | // lecture des données ou hydratation |
7 | private $ID; | 7 | private $ID_location; |
8 | private $ID_presta; | ||
9 | private $nature_bien; | 8 | private $nature_bien; |
10 | private $modele; | 9 | private $modele; |
11 | private $valeur; | 10 | private $valeur; |
@@ -17,17 +16,23 @@ class Locations extends Model | |||
17 | 16 | ||
18 | use ModelChildren; | 17 | use ModelChildren; |
19 | 18 | ||
20 | // setters | 19 | public function __construct(int $client_ID) |
21 | public function setID(int $value) | ||
22 | { | 20 | { |
23 | $this->ID = $value; | 21 | parent::__construct($client_ID); |
24 | return($this); | 22 | $this->type == 'location'; |
25 | } | 23 | } |
26 | public function setIDPresta(int $value) | 24 | |
25 | // setters | ||
26 | public function setIDLocation(int $value) | ||
27 | { | 27 | { |
28 | $this->ID_presta = $value; | 28 | $this->ID_location = $value; |
29 | return($this); | 29 | return($this); |
30 | } | 30 | } |
31 | //~ public function setIDPresta(int $value) | ||
32 | //~ { | ||
33 | //~ $this->ID_presta = $value; | ||
34 | //~ return($this); | ||
35 | //~ } | ||
31 | public function setNatureBien(string $value) | 36 | public function setNatureBien(string $value) |
32 | { | 37 | { |
33 | $this->nature_bien = $value; | 38 | $this->nature_bien = $value; |