DegradedUuidBuilder
in package
implements
UuidBuilderInterface
Tags
Interfaces, Classes, Traits and Enums
- UuidBuilderInterface
- A UUID builder builds instances of UuidInterface
Table of Contents
- $numberConverter : NumberConverterInterface
- $timeConverter : TimeConverterInterface
- __construct() : mixed
- build() : DegradedUuid
- Builds and returns a DegradedUuid
Properties
$numberConverter
private
NumberConverterInterface
$numberConverter
$timeConverter
private
TimeConverterInterface
$timeConverter
Methods
__construct()
public
__construct(NumberConverterInterface $numberConverter[, TimeConverterInterface|null $timeConverter = null ]) : mixed
Parameters
- $numberConverter : NumberConverterInterface
-
The number converter to use when constructing the DegradedUuid
- $timeConverter : TimeConverterInterface|null = null
-
The time converter to use for converting timestamps extracted from a UUID to Unix timestamps
Return values
mixed —build()
Builds and returns a DegradedUuid
public
build(CodecInterface $codec, string $bytes) : DegradedUuid
Parameters
- $codec : CodecInterface
-
The codec to use for building this DegradedUuid instance
- $bytes : string
-
The byte string from which to construct a UUID
Tags
Return values
DegradedUuid —The DegradedUuidBuild returns an instance of Ramsey\Uuid\DegradedUuid