This commit is contained in:
Kilian committed 2024-07-29 22:06:57 +02:00
1 parent 5ce2215e44
commit 6a62ae58fc
22 files changed
+670 -7

No files matched your search

+13
View File
@@ -2,12 +2,25 @@
namespace Khofmann\GUID;
/**
* Facade for GUID generators
*/
class GUID
{
/**
* Private since facade.
*/
private function __construct()
{
}
/**
* Generate a UUID v4.
*
* @param mixed $data Optional data
*
* @return string UUID v4
*/
public static function v4($data = null): string
{
// Generate 16 bytes (128 bits) of random data or use the data passed into the function.