PHP Class Habari\UUID

Afficher le fichier Open project: habari/system

Méthodes publiques

Méthode Description
__construct ( integer $version = 4 ) Create a UUID (Universally Unique IDentifier) as per RfC 4122.
__toString ( ) : a
get ( ) : the Create a UUID and return its canonical hexadecimal representation.
get_array ( ) : the
get_hex ( ) : the
get_raw ( ) : the

Method Details

__construct() public méthode

Currently, only version 4 UUIDs are supported (Section 4.4, "Algorithms for Creating a UUID from Truly Random or Pseudo-Random Numbers").
public __construct ( integer $version = 4 )
$version integer UUID version to generate (currently, only version 4 is supported)

__toString() public méthode

public __toString ( ) : a
Résultat a string representation of this object.

get() public static méthode

Create a UUID and return its canonical hexadecimal representation.
public static get ( ) : the
Résultat the canonical hexadecimal representation of the generated UUID

get_array() public méthode

public get_array ( ) : the
Résultat the generated UUID as an array of bytes

get_hex() public méthode

public get_hex ( ) : the
Résultat the canonical hexadecimal representation of the generated UUID

get_raw() public méthode

public get_raw ( ) : the
Résultat the generated UUID as a string of bytes