diff options
author | polo <ordipolo@gmx.fr> | 2023-02-25 17:30:20 +0100 |
---|---|---|
committer | polo <ordipolo@gmx.fr> | 2023-02-25 17:30:20 +0100 |
commit | b9c74de6d12ef40ab4baf67303ab22a10fcd5b32 (patch) | |
tree | dea294f55810471ca2165811515dcd3c8d0e006e /src/model/Locations.php | |
parent | 9d8133643773912d54fb0c7d86ef04e6acffa8c9 (diff) | |
download | AppliGestionPHP-b9c74de6d12ef40ab4baf67303ab22a10fcd5b32.zip |
document locations, correction de pas mal de problèmes
Diffstat (limited to 'src/model/Locations.php')
-rw-r--r-- | src/model/Locations.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/model/Locations.php b/src/model/Locations.php index 8ebf757..149c1f1 100644 --- a/src/model/Locations.php +++ b/src/model/Locations.php | |||
@@ -54,10 +54,9 @@ class Locations extends Model | |||
54 | $this->etat_des_lieux_fin = $value; | 54 | $this->etat_des_lieux_fin = $value; |
55 | return($this); | 55 | return($this); |
56 | } | 56 | } |
57 | public function setDureeLocation($value) | 57 | public function setDureeLocation(string $value) |
58 | { | 58 | { |
59 | $value = str_replace(',', '.', $value); | 59 | $this->duree_location = $value; |
60 | $this->duree_location = (float) $value; | ||
61 | return($this); | 60 | return($this); |
62 | } | 61 | } |
63 | public function setLoyerMensuel($value) | 62 | public function setLoyerMensuel($value) |