PHP Класс Habari\UUID

Показать файл Открыть проект

Открытые методы

Метод Описание
__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

Описание методов

__construct() публичный Метод

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 __toString ( ) : a
Результат a string representation of this object.

get() публичный статический Метод

Create a UUID and return its canonical hexadecimal representation.
public static get ( ) : the
Результат the canonical hexadecimal representation of the generated UUID

get_array() публичный Метод

public get_array ( ) : the
Результат the generated UUID as an array of bytes

get_hex() публичный Метод

public get_hex ( ) : the
Результат the canonical hexadecimal representation of the generated UUID

get_raw() публичный Метод

public get_raw ( ) : the
Результат the generated UUID as a string of bytes