diff options
Diffstat (limited to 'src/model/Locations.php')
| -rw-r--r-- | src/model/Locations.php | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/src/model/Locations.php b/src/model/Locations.php new file mode 100644 index 0000000..2aa175a --- /dev/null +++ b/src/model/Locations.php | |||
| @@ -0,0 +1,74 @@ | |||
| 1 | <?php | ||
| 2 | // model/Locations.php | ||
| 3 | |||
| 4 | class Locations extends Model | ||
| 5 | { | ||
| 6 | // lecture des données ou hydratation | ||
| 7 | private $ID; | ||
| 8 | private $ID_presta; | ||
| 9 | private $nature_bien; | ||
| 10 | private $modele; | ||
| 11 | private $valeur; | ||
| 12 | private $etat_des_lieux_debut; | ||
| 13 | private $etat_des_lieux_fin; | ||
| 14 | private $duree_location; | ||
| 15 | private $loyer_mensuel; | ||
| 16 | private $total_HT; | ||
| 17 | |||
| 18 | public function __construct() | ||
| 19 | { | ||
| 20 | $this->table = strtolower(__CLASS__); | ||
| 21 | } | ||
| 22 | |||
| 23 | // setters | ||
| 24 | public function setID(int $value) | ||
| 25 | { | ||
| 26 | $this->ID = $value; | ||
| 27 | return($this); | ||
| 28 | } | ||
| 29 | public function setIDPresta(int $value) | ||
| 30 | { | ||
| 31 | $this->ID_presta = $value; | ||
| 32 | return($this); | ||
| 33 | } | ||
| 34 | public function setNatureBien(string $value) | ||
| 35 | { | ||
| 36 | $this->nature_bien = $value; | ||
| 37 | return($this); | ||
| 38 | } | ||
| 39 | public function setModele(string $value) | ||
| 40 | { | ||
| 41 | $this->modele = $value; | ||
| 42 | return($this); | ||
| 43 | } | ||
| 44 | public function setValeur(float $value) | ||
| 45 | { | ||
| 46 | $this->valeur = $value; | ||
| 47 | return($this); | ||
| 48 | } | ||
| 49 | public function setEtatDesLieuxDebut(string $value) | ||
| 50 | { | ||
| 51 | $this->etat_des_lieux_debut = $value; | ||
| 52 | return($this); | ||
| 53 | } | ||
| 54 | public function setEtatDesLieuxFin(string $value) | ||
| 55 | { | ||
| 56 | $this->etat_des_lieux_fin = $value; | ||
| 57 | return($this); | ||
| 58 | } | ||
| 59 | public function setDureeLocation(string $value) | ||
| 60 | { | ||
| 61 | $this->duree_location = $value; | ||
| 62 | return($this); | ||
| 63 | } | ||
| 64 | public function setlLyerMensuel(float $value) | ||
| 65 | { | ||
| 66 | $this->loyer_mensuel = $value; | ||
| 67 | return($this); | ||
| 68 | } | ||
| 69 | public function setTotalHT(float $value) | ||
| 70 | { | ||
| 71 | $this->total_HT = $value; | ||
| 72 | return($this); | ||
| 73 | } | ||
| 74 | } | ||
