diff options
| author | George Halkiadakis <gchalkiadakis@sklavenitis.co.gr> | 2023-03-16 01:09:44 +0200 |
|---|---|---|
| committer | George Halkiadakis <gchalkiadakis@sklavenitis.co.gr> | 2023-03-16 01:09:44 +0200 |
| commit | 1e438654005bd408447dc19c8a96099d228bb1aa (patch) | |
| tree | dc86181a0d3e130e9c18c911ca3cdac39cd6e4b6 /core/classes/authentication/Token | |
| parent | 51b3554ff2988ac61ba3f604431e09941cd95545 (diff) | |
| download | classroom-1e438654005bd408447dc19c8a96099d228bb1aa.tar.gz classroom-1e438654005bd408447dc19c8a96099d228bb1aa.tar.bz2 classroom-1e438654005bd408447dc19c8a96099d228bb1aa.zip | |
working on user management
Diffstat (limited to 'core/classes/authentication/Token')
| -rw-r--r-- | core/classes/authentication/Token/UserToken.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/core/classes/authentication/Token/UserToken.php b/core/classes/authentication/Token/UserToken.php index 6ce2eb6..520d4ad 100644 --- a/core/classes/authentication/Token/UserToken.php +++ b/core/classes/authentication/Token/UserToken.php @@ -15,16 +15,28 @@ class UserToken implements UserTokenInterface */ private $user; + public function __construct(UserInterface $user) { $this->user = $user; } + + /** getUser + * + */ public function getUser(): UserInterface { return $this->user; } + + /** serialize() + * + * serializes the user structure (with user's property values) + * ... then it will be saved into session[DEFAULT_PREFIX_KEY] + * + */ public function serialize(): string { return serialize($this); |
