From 1894fc377e6b938ea34df9980567a1634ec6ef48 Mon Sep 17 00:00:00 2001 From: polo Date: Wed, 28 Dec 2022 05:19:55 +0100 Subject: =?UTF-8?q?r=C3=A9organisation=20+=20bient=C3=B4t=20finie=20la=20s?= =?UTF-8?q?ection=201?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/model/Locations.php | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) (limited to 'src/model/Locations.php') 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 @@ class Locations extends Model { // lecture des données ou hydratation - private $ID; - private $ID_presta; + private $ID_location; private $nature_bien; private $modele; private $valeur; @@ -17,17 +16,23 @@ class Locations extends Model use ModelChildren; - // setters - public function setID(int $value) + public function __construct(int $client_ID) { - $this->ID = $value; - return($this); + parent::__construct($client_ID); + $this->type == 'location'; } - public function setIDPresta(int $value) + + // setters + public function setIDLocation(int $value) { - $this->ID_presta = $value; + $this->ID_location = $value; return($this); } + //~ public function setIDPresta(int $value) + //~ { + //~ $this->ID_presta = $value; + //~ return($this); + //~ } public function setNatureBien(string $value) { $this->nature_bien = $value; -- cgit v1.2.3