summaryrefslogtreecommitdiff
path: root/src/model/Model.php
diff options
context:
space:
mode:
authorpolo <ordipolo@gmx.fr>2023-07-05 01:39:29 +0200
committerpolo <ordipolo@gmx.fr>2023-07-05 01:39:29 +0200
commit9bdfb5196a2ee1cbfc403702e8d2ef88076d366f (patch)
tree6a92d8011dae746e5fe7a618eb4af2b77e922572 /src/model/Model.php
parent884493c1fb985adaaa537c11f4350d940cc68cb1 (diff)
downloadAppliGestionPHP-9bdfb5196a2ee1cbfc403702e8d2ef88076d366f.zip
classe Latex "fonctionnelle"
Diffstat (limited to 'src/model/Model.php')
-rw-r--r--src/model/Model.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/model/Model.php b/src/model/Model.php
index 40a9fcb..17d1292 100644
--- a/src/model/Model.php
+++ b/src/model/Model.php
@@ -16,7 +16,7 @@ abstract class Model extends DB
16 // getters 16 // getters
17 public function getTable(): string 17 public function getTable(): string
18 { 18 {
19 return($this->table); 19 return $this->table;
20 } 20 }
21 21
22 public function getAll(): array 22 public function getAll(): array
@@ -35,7 +35,7 @@ abstract class Model extends DB
35 { 35 {
36 $this->ID = $value; 36 $this->ID = $value;
37 } 37 }
38 return($this); 38 return $this;
39 } 39 }
40 40
41 public function hydrate(array $data): bool // $data = tableau associatif en entrée: nom_du_champ => valeur 41 public function hydrate(array $data): bool // $data = tableau associatif en entrée: nom_du_champ => valeur