From 8217753e3bd226e4cecf208027b9ca7f01c81047 Mon Sep 17 00:00:00 2001 From: Kevin Frantz Date: Sat, 14 Jul 2018 10:58:29 +0200 Subject: [PATCH] Implemented user --- src/entity/user/User.php | 39 +++++++++++++++++++++++++++++++++------ 1 file changed, 33 insertions(+), 6 deletions(-) diff --git a/src/entity/user/User.php b/src/entity/user/User.php index 257344a..8e0e7bd 100644 --- a/src/entity/user/User.php +++ b/src/entity/user/User.php @@ -8,23 +8,50 @@ namespace entity\user; */ final class User implements UserInterface { + /** + * @var string + */ + private $name; + + /** + * @var string + */ + private $email; + + /** + * @var string + */ + private $passwordHash; + public function setName(string $name): void - {} + { + $this->name = $name; + } public function getName(): string - {} + { + return $this->name; + } public function setEmail(string $email): void - {} + { + $this->email = $email; + } public function getPasswordHash(): string - {} + { + return $this->passwordHash; + } public function setPasswordHash(string $hash): void - {} + { + $this->passwordHash = $hash; + } public function getEmail(): string - {} + { + return $this->email; + } public function getId(): int {}