Documentation

DefaultNameGenerator
in package
implements NameGeneratorInterface

DefaultNameGenerator generates strings of binary data based on a namespace, name, and hashing algorithm

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
psalm-pure
Return values
string

A binary string

Search results