Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathload.codebase.functions.php
More file actions
Latest commit
35 lines (33 loc) · 1.54 KB
/
Copy pathload.codebase.functions.php
File metadata and controls
35 lines (33 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?phpdeclare(strict_types=1);
// @package webkernel/platform/load.codebase.functions.php
useWebkernel\Base\Generators\UniqueId\IdentifierClass;
if (!function_exists('webkernel_id_generator')) {
/**
* Ultra-fast unique identifier generator with multiple strategies.
*
* Available methods (from HasIdentifiers and UniqueIdGenerator):
* @method \Webkernel\Base\Generators\UniqueId\UniqueIdGenerator makeUniqueIdentifier()
* @method \Webkernel\Base\Generators\UniqueId\UniqueIdGenerator make()
* @method \Webkernel\Base\Generators\UniqueId\UniqueIdGenerator using(string $strategy)
* @method \Webkernel\Base\Generators\UniqueId\UniqueIdGenerator length(int $length)
* @method \Webkernel\Base\Generators\UniqueId\UniqueIdGenerator count(int $count)
* @method \Webkernel\Base\Generators\UniqueId\UniqueIdGenerator prefix(string $prefix)
* @method \Webkernel\Base\Generators\UniqueId\UniqueIdGenerator cssSafe(bool $safe = true)
* @method \Webkernel\Base\Generators\UniqueId\UniqueIdGenerator with(array $options)
* @method string get()
* @method array toArray()
* @method string toCss()
* @method string toRaw()
* @method string toJson()
* @method array strategies()
* @method array catalog()
* @method string __toString()
*
* Default strategies:
* random, epoch, nano, sequential, username, uuidv4, uuidv7, ulid, sqids, cuid2, nanoid, shorthash
*/
functionwebkernel_id_generator(): IdentifierClass
{
return (newIdentifierClass());
}
}