| 1 | <?php |
||
| 7 | class User implements UserInterface { |
||
| 8 | /** @var string **/ |
||
| 9 | protected $username; |
||
| 10 | /** @var string **/ |
||
| 11 | protected $password; |
||
| 12 | /** @var string **/ |
||
| 13 | protected $salt; |
||
| 14 | /** @var array **/ |
||
| 15 | protected $roles; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @param string $username |
||
| 19 | * @param string $password |
||
| 20 | * @param string $salt |
||
| 21 | * @param array $roles |
||
| 22 | */ |
||
| 23 | public function __construct($username = '', $password = '', $salt = '', $roles = []) { |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @return string |
||
| 32 | */ |
||
| 33 | public function getUsername() { |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @return string |
||
| 39 | */ |
||
| 40 | public function getPassword() { |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @return string |
||
| 46 | */ |
||
| 47 | public function getSalt() { |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @return array |
||
| 53 | */ |
||
| 54 | public function getRoles() { |
||
| 57 | |||
| 58 | /** |
||
| 59 | * @return boolean |
||
| 60 | */ |
||
| 61 | public function eraseCredentials() { |
||
| 64 | } |
||
| 65 |