function UuidFactory::uuid
Returns a Uuid created from the provided byte string
Uses the configured builder and codec and the provided byte string to construct a Uuid object.
@psalm-pure
Parameters
string $bytes The byte string from which to construct a UUID:
Return value
UuidInterface An instance of UuidInterface, created from the provided bytes
1 call to UuidFactory::uuid()
- UuidFactory::uuidFromBytesAndVersion in vendor/
ramsey/ uuid/ src/ UuidFactory.php - Returns an RFC 4122 variant Uuid, created from the provided bytes and version
File
-
vendor/
ramsey/ uuid/ src/ UuidFactory.php, line 445
Class
Namespace
Ramsey\UuidCode
public function uuid(string $bytes) : UuidInterface {
/** @psalm-suppress ImpurePropertyFetch */
return $this->uuidBuilder
->build($this->codec, $bytes);
}