class DefaultUuidBuilder implements UuidBuilderInterface (View source)

DefaultUuidBuilder is the default UUID builder for ramsey/uuid; it builds instances of Uuid objects

Methods

__construct(NumberConverterInterface $converter)

Constructs the DefaultUuidBuilder

build(CodecInterface $codec, array $fields)

Builds a Uuid

Details

__construct(NumberConverterInterface $converter)

Constructs the DefaultUuidBuilder

Parameters

NumberConverterInterface $converter The number converter to use when constructing the Uuid

UuidInterface build(CodecInterface $codec, array $fields)

Builds a Uuid

Parameters

CodecInterface $codec The codec to use for building this UuidInterface instance
array $fields An array of fields from which to construct a UuidInterface instance; see {see \Ramsey\Uuid\UuidInterface::getFieldsHex()} for array structure.

Return Value

UuidInterface