Documentation

UuidBuilder
in package
implements UuidBuilderInterface

UuidBuilder builds instances of RFC 4122 UUIDs

Tags
psalm-immutable

Interfaces, Classes, Traits and Enums

UuidBuilderInterface
A UUID builder builds instances of UuidInterface

Table of Contents

$numberConverter  : NumberConverterInterface
$timeConverter  : TimeConverterInterface
__construct()  : mixed
Constructs the DefaultUuidBuilder
build()  : UuidInterface
Builds and returns a Uuid
buildFields()  : FieldsInterface
Proxy method to allow injecting a mock, for testing

Properties

Methods

build()

Builds and returns a Uuid

public build(CodecInterface $codec, string $bytes) : UuidInterface
Parameters
$codec : CodecInterface

The codec to use for building this Uuid instance

$bytes : string

The byte string from which to construct a UUID

Tags
psalm-pure
Return values
UuidInterface

UuidBuilder returns instances of Rfc4122UuidInterface

Search results