|
| static | v4 () |
| |
| static | v5 ($str, UUID $namespace=null) |
| |
◆ __construct()
| hellsh\UUID::__construct |
( |
|
$uuid | ) |
|
- Parameters
-
| string | $uuid | A UUID string or 16-byte binary string. |
- Exceptions
-
| InvalidArgumentException | When the given string is not a valid UUID. |
◆ __toString()
| hellsh\UUID::__toString |
( |
| ) |
|
◆ toString()
| hellsh\UUID::toString |
( |
|
$withDashes = false | ) |
|
Returns the string representation of the UUID.
- Parameters
-
- Returns
- string
◆ v4()
| static hellsh\UUID::v4 |
( |
| ) |
|
|
static |
Generates a UUIDv4.
- Returns
- UUID
◆ v5()
| static hellsh\UUID::v5 |
( |
|
$str, |
|
|
UUID |
$namespace = null |
|
) |
| |
|
static |
Generates a UUIDv5.
- Parameters
-
| string | $str | |
| UUID | null | $namespace | Defaults to NULL UUID. |
- Returns
- UUID
◆ $binary
| string hellsh\UUID::$binary |
The 16-byte binary string containing the UUID.
The documentation for this class was generated from the following file: