Documentation

UuidBuilder
in package
implements UuidBuilderInterface

Nonstandard\UuidBuilder builds instances of Nonstandard\Uuid

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
build()  : Uuid
Builds and returns a Nonstandard\Uuid
buildFields()  : Fields
Proxy method to allow injecting a mock, for testing

Properties

Methods

build()

Builds and returns a Nonstandard\Uuid

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

The codec to use for building this instance

$bytes : string

The byte string from which to construct a UUID

Tags
psalm-pure
Return values
Uuid

The Nonstandard\UuidBuilder returns an instance of Nonstandard\Uuid

buildFields()

Proxy method to allow injecting a mock, for testing

protected buildFields(string $bytes) : Fields
Parameters
$bytes : string
Return values
Fields

Search results