mirror of
https://github.com/kevinveenbirkenbach/coding-challenge-online-shop.git
synced 2024-11-22 18:21:04 +01:00
Defined email as unique identifier
This commit is contained in:
parent
8217753e3b
commit
40e1624d9d
@ -14,6 +14,7 @@ final class User implements UserInterface
|
|||||||
private $name;
|
private $name;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Unique identifier in database
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
private $email;
|
private $email;
|
||||||
@ -52,9 +53,5 @@ final class User implements UserInterface
|
|||||||
{
|
{
|
||||||
return $this->email;
|
return $this->email;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getId(): int
|
|
||||||
{}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user