FallbackBuilder
in package
implements
UuidBuilderInterface
FallbackBuilder builds a UUID by stepping through a list of UUID builders until a UUID can be constructed without exceptions
Tags
Interfaces, Classes, Traits and Enums
- UuidBuilderInterface
- A UUID builder builds instances of UuidInterface
Table of Contents
- $builders : iteratable<string|int, UuidBuilderInterface>
- __construct() : mixed
- build() : UuidInterface
- Builds and returns a UuidInterface instance using the first builder that succeeds
Properties
$builders
private
iteratable<string|int, UuidBuilderInterface>
$builders
Methods
__construct()
public
__construct(iteratable<string|int, UuidBuilderInterface> $builders) : mixed
Parameters
- $builders : iteratable<string|int, UuidBuilderInterface>
-
An array of UUID builders
Return values
mixed —build()
Builds and returns a UuidInterface instance using the first builder that succeeds
public
build(CodecInterface $codec, string $bytes) : UuidInterface
Parameters
- $codec : CodecInterface
-
The codec to use for building this instance
- $bytes : string
-
The byte string from which to construct a UUID
Tags
Return values
UuidInterface —an instance of a UUID object