List of all members.
Detailed Description
Class to create and format UUIDs.
Definition at line 11 of file uuid.php.
Constructor & Destructor Documentation
| UUID::__construct |
( |
$ |
version = 4 |
) |
|
Create a UUID (Universally Unique IDentifier) as per RfC 4122.
Currently, only version 4 UUIDs are supported (Section 4.4, "Algorithms for Creating a UUID from Truly Random or Pseudo-Random Numbers").
- Parameters:
-
| int | $version UUID version to generate (currently, only version 4 is supported) |
Definition at line 23 of file uuid.php.
Member Function Documentation
- Returns:
- a string representation of this object.
Definition at line 44 of file uuid.php.
| static UUID::get |
( |
|
) |
[static] |
Create a UUID and return its canonical hexadecimal representation.
- Returns:
- the canonical hexadecimal representation of the generated UUID
Definition at line 86 of file uuid.php.
- Returns:
- the generated UUID as an array of bytes
Definition at line 52 of file uuid.php.
- Returns:
- the canonical hexadecimal representation of the generated UUID
Definition at line 68 of file uuid.php.
Referenced by __toString().
- Returns:
- the generated UUID as a string of bytes
Definition at line 60 of file uuid.php.
The documentation for this class was generated from the following file: