function DegradedUuidBuilder::build
Builds and returns a DegradedUuid
@psalm-pure
Parameters
CodecInterface $codec The codec to use for building this DegradedUuid instance:
string $bytes The byte string from which to construct a UUID:
Return value
DegradedUuid The DegradedUuidBuild returns an instance of Ramsey\Uuid\DegradedUuid
Overrides UuidBuilderInterface::build
File
-
vendor/
ramsey/ uuid/ src/ Builder/ DegradedUuidBuilder.php, line 58
Class
- DegradedUuidBuilder
- @psalm-immutable
Namespace
Ramsey\Uuid\BuilderCode
public function build(CodecInterface $codec, string $bytes) : UuidInterface {
return new DegradedUuid(new Rfc4122Fields($bytes), $this->numberConverter, $codec, $this->timeConverter);
}