diff options
Diffstat (limited to 'src/model/Model.php')
| -rw-r--r-- | src/model/Model.php | 4 |
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 |
