VersionTrait
Provides common functionality for handling the version, as defined by RFC 4122
Tags
Table of Contents
- getVersion() : int|null
- Returns the version
- isNil() : bool
- Returns true if these fields represent a nil UUID
- isCorrectVersion() : bool
- Returns true if the version matches one of those defined by RFC 4122
Methods
getVersion()
Returns the version
public
abstract getVersion() : int|null
Return values
int|null —isNil()
Returns true if these fields represent a nil UUID
public
abstract isNil() : bool
Return values
bool —isCorrectVersion()
Returns true if the version matches one of those defined by RFC 4122
private
isCorrectVersion() : bool
Return values
bool —True if the UUID version is valid, false otherwise