Skip to content

NameGeneratorInterface

A name generator generates strings of binary data created by hashing together a namespace with a name, according to a hashing algorithm

  • Full name: \Ramsey\Uuid\Generator\NameGeneratorInterface

Methods

generate

Generate a binary string from a namespace and name hashed together with the specified hashing algorithm

public generate(\Ramsey\Uuid\UuidInterface $ns, string $name, string $hashAlgorithm): string

Parameters:

Parameter Type Description
$ns \Ramsey\Uuid\UuidInterface The namespace
$name string The name to use for creating a UUID
$hashAlgorithm string The hashing algorithm to use

Return Value:

A binary string



Automatically generated on 2025-03-18