PeclUuidNameGenerator
in package
implements
NameGeneratorInterface
PeclUuidNameGenerator generates strings of binary data from a namespace and a name, using ext-uuid
Tags
Interfaces, Classes, Traits and Enums
- NameGeneratorInterface
- A name generator generates strings of binary data created by hashing together a namespace with a name, according to a hashing algorithm
Table of Contents
- generate() : string
- Generate a binary string from a namespace and name hashed together with the specified hashing algorithm
Methods
generate()
Generate a binary string from a namespace and name hashed together with the specified hashing algorithm
public
generate(UuidInterface $ns, string $name, string $hashAlgorithm) : string
Parameters
- $ns : UuidInterface
-
The namespace
- $name : string
-
The name to use for creating a UUID
- $hashAlgorithm : string
-
The hashing algorithm to use
Tags
Return values
string —A binary string