Implemented UniqueInterface, User and tests

This commit is contained in:
Kevin Frantz
2018-07-14 14:15:36 +02:00
parent 400e64a822
commit 14fff41c96
6 changed files with 51 additions and 17 deletions

View File

@@ -23,6 +23,12 @@ final class User implements UserInterface
* @var string
*/
private $passwordHash;
/**
*
* @var int
*/
private $id;
public function setName(string $name): void
{
@@ -53,5 +59,15 @@ final class User implements UserInterface
{
return $this->email;
}
public function setId(int $id): void
{
$this->id = $id;
}
public function getId(): int
{
return $this->id;
}
}