mirror of
https://github.com/ramsey/uuid.git
synced 2026-06-15 16:07:55 +03:00
33 lines
761 B
ReStructuredText
33 lines
761 B
ReStructuredText
.. _reference.variant:
|
|
|
|
=======
|
|
Variant
|
|
=======
|
|
|
|
.. php:namespace:: Ramsey\Uuid
|
|
|
|
.. php:enum:: Variant : int
|
|
|
|
The variant number describes the layout of the UUID. UUIDs generated
|
|
according to the layout defined in `RFC 4122`_ will always have a variant
|
|
value set to ``2``. In ramsey/uuid, this is the enum value
|
|
:php:case:`Ramsey\\Uuid\\Variant::Rfc4122`.
|
|
|
|
.. php:case:: ReservedNcs : 0
|
|
|
|
Reserved for NCS backward compatibility.
|
|
|
|
.. php:case:: Rfc4122 : 2
|
|
|
|
The RFC 4122 variant.
|
|
|
|
.. php:case:: ReservedMicrosoft : 6
|
|
|
|
Reserved for Microsoft Corporation backward compatibility.
|
|
|
|
.. php:case:: ReservedFuture : 7
|
|
|
|
Reserved for future definition.
|
|
|
|
.. _RFC 4122: https://www.rfc-editor.org/rfc/rfc4122
|