Documentation

GuidBuilder
in package
implements UuidBuilderInterface

GuidBuilder builds instances of Guid

Tags
see
Guid
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()  : Guid
Builds and returns a Guid
buildFields()  : Fields
Proxy method to allow injecting a mock, for testing

Properties

Methods

build()

Builds and returns a Guid

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

The codec to use for building this Guid instance

$bytes : string

The byte string from which to construct a UUID

Tags
psalm-pure
Return values
Guid

The GuidBuilder returns an instance of Ramsey\Uuid\Guid\Guid

buildFields()

Proxy method to allow injecting a mock, for testing

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

Search results