Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 3 |
|
0.00% |
0 / 3 |
CRAP | |
0.00% |
0 / 1 |
UserUtility | |
0.00% |
0 / 3 |
|
0.00% |
0 / 3 |
12 | |
0.00% |
0 / 1 |
generateSignupToken | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
generateUserId | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
generatePasswordReminderToken | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | |
3 | declare(strict_types=1); |
4 | |
5 | namespace PeServer\App\Models\Domain; |
6 | |
7 | use PeServer\Core\Uuid; |
8 | use PeServer\Core\Cryptography; |
9 | |
10 | abstract class UserUtility |
11 | { |
12 | public static function generateSignupToken(): string |
13 | { |
14 | return Cryptography::generateRandomString(80); |
15 | } |
16 | |
17 | public static function generateUserId(): string |
18 | { |
19 | return Uuid::generateGuid(); |
20 | } |
21 | |
22 | public static function generatePasswordReminderToken(): string |
23 | { |
24 | return Cryptography::generateRandomString(80); |
25 | } |
26 | } |