diff options
Diffstat (limited to 'src/model/entities')
-rw-r--r-- | src/model/entities/Image.php | 2 | ||||
-rw-r--r-- | src/model/entities/User.php | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/model/entities/Image.php b/src/model/entities/Image.php index 181c137..302a27f 100644 --- a/src/model/entities/Image.php +++ b/src/model/entities/Image.php | |||
@@ -74,7 +74,7 @@ class Image | |||
74 | } | 74 | } |
75 | 75 | ||
76 | 76 | ||
77 | // pour ViewBuilder? | 77 | // pour ViewBuilderController? |
78 | /*public function displayImage($imageId): void | 78 | /*public function displayImage($imageId): void |
79 | { | 79 | { |
80 | //$imageId = 1; // Exemple d'ID d'image | 80 | //$imageId = 1; // Exemple d'ID d'image |
diff --git a/src/model/entities/User.php b/src/model/entities/User.php index 4b1dcb8..26802e2 100644 --- a/src/model/entities/User.php +++ b/src/model/entities/User.php | |||
@@ -35,11 +35,14 @@ class User | |||
35 | { | 35 | { |
36 | return $this->login; | 36 | return $this->login; |
37 | } | 37 | } |
38 | public function setLogin(string $login): void | ||
39 | { | ||
40 | $this->login = $login; | ||
41 | } | ||
38 | public function getPassword(): string | 42 | public function getPassword(): string |
39 | { | 43 | { |
40 | return $this->password; | 44 | return $this->password; |
41 | } | 45 | } |
42 | |||
43 | public function setPassword(string $password): void | 46 | public function setPassword(string $password): void |
44 | { | 47 | { |
45 | $this->password = $password; | 48 | $this->password = $password; |