DefaultUuidBuilder
in package
implements
UuidBuilderInterface
DefaultUuidBuilder is the default UUID builder for ramsey/uuid; it builds instances of Uuid objects
Interfaces, Classes and Traits
- UuidBuilderInterface
- UuidBuilderInterface builds instances UuidInterface
Table of Contents
- $converter : NumberConverterInterface
- __construct() : mixed
- Constructs the DefaultUuidBuilder
- build() : Uuid
- Builds a Uuid
Properties
$converter
private
NumberConverterInterface
$converter
Methods
__construct()
Constructs the DefaultUuidBuilder
public
__construct(NumberConverterInterface $converter) : mixed
Parameters
- $converter : NumberConverterInterface
-
The number converter to use when constructing the Uuid
Return values
mixed —build()
Builds a Uuid
public
build(CodecInterface $codec, array<string|int, mixed> $fields) : Uuid
Parameters
- $codec : CodecInterface
-
The codec to use for building this Uuid
- $fields : array<string|int, mixed>
-
An array of fields from which to construct the Uuid; see UuidInterface::getFieldsHex() for array structure.