Docs
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user