diff options
| author | George Halkiadakis <gchalkiadakis@sklavenitis.co.gr> | 2023-03-14 00:28:47 +0200 |
|---|---|---|
| committer | George Halkiadakis <gchalkiadakis@sklavenitis.co.gr> | 2023-03-14 00:28:47 +0200 |
| commit | 8b928471412bbf9016df9b01b2308f003e455d7d (patch) | |
| tree | 913a7bab845b8bfd72ba489746ea703159314f4b /core/classes/authentication/Token/UserToken.php | |
| parent | e70176b6e6f539754974117625eeab06c4c5dd01 (diff) | |
| parent | d9167fb5318d5370ba5445e94c0e0f9b64341df4 (diff) | |
| download | classroom-8b928471412bbf9016df9b01b2308f003e455d7d.tar.gz classroom-8b928471412bbf9016df9b01b2308f003e455d7d.tar.bz2 classroom-8b928471412bbf9016df9b01b2308f003e455d7d.zip | |
Merge branch 'authentication'
Diffstat (limited to 'core/classes/authentication/Token/UserToken.php')
| -rw-r--r-- | core/classes/authentication/Token/UserToken.php | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/core/classes/authentication/Token/UserToken.php b/core/classes/authentication/Token/UserToken.php new file mode 100644 index 0000000..6ce2eb6 --- /dev/null +++ b/core/classes/authentication/Token/UserToken.php @@ -0,0 +1,32 @@ +<?php +/** Class UserToken + * + * @package DevCoder\Authentication + * + */ +// namespace DevCoder\Authentication\Token; + +// use DevCoder\Authentication\UserInterface; + +class UserToken implements UserTokenInterface +{ + /** + * @var UserInterface + */ + private $user; + + public function __construct(UserInterface $user) + { + $this->user = $user; + } + + public function getUser(): UserInterface + { + return $this->user; + } + + public function serialize(): string + { + return serialize($this); + } +} |
