PHP Класс Doctrine\OXM\Id\UuidGenerator

С версии: 1.0
Автор: Jonathan H. Wage ([email protected])
Наследование: extends AbstractIdGenerator
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$salt string A unique environment value to salt each GUID with.

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

Метод Описание
generate ( XmlEntityManager $xem, $xmlEntity ) : string Generates a new GUID
generateV4 ( ) : string Generates a v4 GUID
generateV5 ( string $namespace, string $salt ) : string Generates a v5 GUID
getSalt ( ) : string Returns the current salt value
isValid ( $guid ) : boolean Checks that a given string is a valid uuid.
setSalt ( string $salt ) Used to set the salt that will be applied to each id

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

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

Generates a new GUID
public generate ( XmlEntityManager $xem, $xmlEntity ) : string
$xem Doctrine\OXM\XmlEntityManager
Результат string

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

Generates a v4 GUID
public generateV4 ( ) : string
Результат string

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

Generates a v5 GUID
public generateV5 ( string $namespace, string $salt ) : string
$namespace string The GUID to seed with
$salt string The string to salt this new UUID with
Результат string

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

Returns the current salt value
public getSalt ( ) : string
Результат string $salt The current salt

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

Checks that a given string is a valid uuid.
public isValid ( $guid ) : boolean
Результат boolean

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

Used to set the salt that will be applied to each id
public setSalt ( string $salt )
$salt string The sale to use

Описание свойств

$salt защищенное свойство

A unique environment value to salt each GUID with.
protected string $salt
Результат string