function FieldsInterface::getVariant
Returns the variant
The variant number describes the layout of the UUID. The variant number has the following meaning:
- 0 - Reserved for NCS backward compatibility
- 2 - The RFC 4122 variant
- 6 - Reserved, Microsoft Corporation backward compatibility
- 7 - Reserved for future definition
For RFC 4122 variant UUIDs, this value should always be the integer `2`.
@link http://tools.ietf.org/html/rfc4122#section-4.1.1 RFC 4122, ยง 4.1.1: Variant
File
-
vendor/
ramsey/ uuid/ src/ Rfc4122/ FieldsInterface.php, line 98
Class
- FieldsInterface
- RFC 4122 defines fields for a specific variant of UUID
Namespace
Ramsey\Uuid\Rfc4122Code
public function getVariant() : int;