From 63dc17d0abc398c135f6d049d28174c3925416c9 Mon Sep 17 00:00:00 2001 From: George Halkiadakis Date: Wed, 24 May 2023 05:06:01 +0300 Subject: forming default values for auto fields --- core/classes/authentication/Core/UserManager.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'core/classes/authentication') 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 { -- cgit v1.2.3