diff options
| author | George Halkiadakis <gchalkiadakis@sklavenitis.co.gr> | 2023-03-13 02:22:07 +0200 |
|---|---|---|
| committer | George Halkiadakis <gchalkiadakis@sklavenitis.co.gr> | 2023-03-13 02:22:07 +0200 |
| commit | d9167fb5318d5370ba5445e94c0e0f9b64341df4 (patch) | |
| tree | e624d80cd4d7ab040214ef85cfbaef31dbbb970d /core/classes/authenticator/User.php | |
| parent | 33266244e8c75c29f31dd5dce756e55fb10a0b9b (diff) | |
| download | classroom-d9167fb5318d5370ba5445e94c0e0f9b64341df4.tar.gz classroom-d9167fb5318d5370ba5445e94c0e0f9b64341df4.tar.bz2 classroom-d9167fb5318d5370ba5445e94c0e0f9b64341df4.zip | |
authentication skeleton
Diffstat (limited to 'core/classes/authenticator/User.php')
| -rw-r--r-- | core/classes/authenticator/User.php | 102 |
1 files changed, 0 insertions, 102 deletions
diff --git a/core/classes/authenticator/User.php b/core/classes/authenticator/User.php deleted file mode 100644 index b99fa70..0000000 --- a/core/classes/authenticator/User.php +++ /dev/null @@ -1,102 +0,0 @@ -<?php - - -// namespace DevCoder\Authentication; - -class User implements UserInterface -{ - - // @var string - private $userName; - - // @var string - private $password; - - // @var array - private $roles = []; - - // @var bool - private $enabled = true; - - - /** GETs - * ------------------------------------------------------------------------- - */ - - /** getUserName - * @return null|string - */ - public function getUsername(): ?string - { - return $this->userName; - } - - /** getPassword - * @return null|string - */ - public function getPassword(): ?string - { - return $this->password; - } - - /** getRoles - * @return array - */ - public function getRoles(): array - { - return $this->roles; - } - - /** isEnabled - * @return bool - */ - public function isEnabled(): bool - { - return $this->enabled; - } - - - /** SETs - * ------------------------------------------------------------------------- - */ - - /** setUserName - * @param string $userName - * @return User - */ - public function setUserName(string $userName): self - { - $this->userName = $userName; - return $this; - } - - /** setPassword - * @param string $password - * @return User - */ - public function setPassword(string $password): self - { - $this->password = $password; - return $this; - } - - /** setRoles - * @param array $roles - * @return User - */ - public function setRoles(array $roles): self - { - $this->roles = $roles; - return $this; - } - - /** - * @param bool $enabled - * @return User - */ - public function setEnabled(bool $enabled): self - { - $this->enabled = $enabled; - return $this; - } -} |
