mirror of
https://github.com/ramsey/uuid.git
synced 2026-06-15 16:07:55 +03:00
feat: introduce Variant enum and use instead of constants
This commit is contained in:
@@ -80,34 +80,6 @@ class Uuid implements Rfc4122UuidInterface
|
||||
*/
|
||||
public const NIL = '00000000-0000-0000-0000-000000000000';
|
||||
|
||||
/**
|
||||
* Variant: reserved, NCS backward compatibility
|
||||
*
|
||||
* @link http://tools.ietf.org/html/rfc4122#section-4.1.1 RFC 4122, § 4.1.1: Variant
|
||||
*/
|
||||
public const RESERVED_NCS = 0;
|
||||
|
||||
/**
|
||||
* Variant: the UUID layout specified in RFC 4122
|
||||
*
|
||||
* @link http://tools.ietf.org/html/rfc4122#section-4.1.1 RFC 4122, § 4.1.1: Variant
|
||||
*/
|
||||
public const RFC_4122 = 2;
|
||||
|
||||
/**
|
||||
* Variant: reserved, Microsoft Corporation backward compatibility
|
||||
*
|
||||
* @link http://tools.ietf.org/html/rfc4122#section-4.1.1 RFC 4122, § 4.1.1: Variant
|
||||
*/
|
||||
public const RESERVED_MICROSOFT = 6;
|
||||
|
||||
/**
|
||||
* Variant: reserved for future definition
|
||||
*
|
||||
* @link http://tools.ietf.org/html/rfc4122#section-4.1.1 RFC 4122, § 4.1.1: Variant
|
||||
*/
|
||||
public const RESERVED_FUTURE = 7;
|
||||
|
||||
/**
|
||||
* @deprecated Use {@see ValidatorInterface::getPattern()} instead.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user