1 | <?php |
||
6 | class AdminModel |
||
|
|||
7 | { |
||
8 | /** |
||
9 | * Sets the deletion and suspension values |
||
10 | * |
||
11 | * @param $suspensionInDays |
||
12 | * @param $softDelete |
||
13 | * @param $userId |
||
14 | */ |
||
15 | public static function setAccountSuspensionAndDeletionStatus($suspensionInDays, $softDelete, $userId) |
||
39 | |||
40 | /** |
||
41 | * Simply write the deletion and suspension info for the user into the database, also puts feedback into session |
||
42 | * |
||
43 | * @param $userId |
||
44 | * @param $suspensionTime |
||
45 | * @param $delete |
||
46 | * @return bool |
||
47 | */ |
||
48 | private static function writeDeleteAndSuspensionInfoToDatabase($userId, $suspensionTime, $delete) |
||
64 | |||
65 | /** |
||
66 | * Kicks the selected user out of the system instantly by resetting the user's session. |
||
67 | * This means, the user will be "logged out". |
||
68 | * |
||
69 | * @param $userId |
||
70 | * @return bool |
||
71 | */ |
||
72 | private static function resetUserSession($userId) |
||
87 | } |
||
88 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.