PHP Class Doctrine\OXM\Id\UuidGenerator

Since: 1.0
Author: Jonathan H. Wage ([email protected])
Inheritance: extends AbstractIdGenerator
Afficher le fichier Open project: doctrine/oxm

Protected Properties

Свойство Type Description
$salt string A unique environment value to salt each GUID with.

Méthodes publiques

Méthode Description
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

Method Details

generate() public méthode

Generates a new GUID
public generate ( XmlEntityManager $xem, $xmlEntity ) : string
$xem Doctrine\OXM\XmlEntityManager
Résultat string

generateV4() public méthode

Generates a v4 GUID
public generateV4 ( ) : string
Résultat string

generateV5() public méthode

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
Résultat string

getSalt() public méthode

Returns the current salt value
public getSalt ( ) : string
Résultat string $salt The current salt

isValid() public méthode

Checks that a given string is a valid uuid.
public isValid ( $guid ) : boolean
Résultat boolean

setSalt() public méthode

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

Property Details

$salt protected_oe property

A unique environment value to salt each GUID with.
protected string $salt
Résultat string