summaryrefslogtreecommitdiff
path: root/core/classes/authentication/Core/UserManager.php
diff options
context:
space:
mode:
authorGeorge Halkiadakis <gchalkiadakis@sklavenitis.co.gr>2023-05-24 05:06:01 +0300
committerGeorge Halkiadakis <gchalkiadakis@sklavenitis.co.gr>2023-05-24 05:06:01 +0300
commit63dc17d0abc398c135f6d049d28174c3925416c9 (patch)
tree3c68552b737096b073368ac8d874b0cd46640adb /core/classes/authentication/Core/UserManager.php
parent2f5f034a97fd39b372d9c23b1b04db74c4469f22 (diff)
downloadgyraf1gov-63dc17d0abc398c135f6d049d28174c3925416c9.tar.gz
gyraf1gov-63dc17d0abc398c135f6d049d28174c3925416c9.tar.bz2
gyraf1gov-63dc17d0abc398c135f6d049d28174c3925416c9.zip
forming default values for auto fields
Diffstat (limited to 'core/classes/authentication/Core/UserManager.php')
-rw-r--r--core/classes/authentication/Core/UserManager.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/core/classes/authentication/Core/UserManager.php b/core/classes/authentication/Core/UserManager.php
index 54cd2cb..4d9da7b 100644
--- a/core/classes/authentication/Core/UserManager.php
+++ b/core/classes/authentication/Core/UserManager.php
@@ -42,6 +42,8 @@ class UserManager implements UserManagerInterface
/** hasUserToken()
* == is user loged in
*
+ * @param void
+ * @return boolean
*/
public function hasUserToken(): bool
{
@@ -55,9 +57,12 @@ class UserManager implements UserManagerInterface
* checks if user is granded some role(s)
* from the array of roles that are passed
*
- * ex. $token->isGranted(['editor', 'designer']) ...
+ * @example:
+ * $token->isGranted(['editor', 'designer']) ...
* returns true if the user is editor or designer (or both)
*
+ * @param $roles (array) : array of (int) role IDs
+ * @return boolean
*/
public function isGranted(array $roles): bool
{