function Fields::getClockSeq
Same name in this branch
- 11.1.x vendor/ramsey/uuid/src/Guid/Fields.php \Ramsey\Uuid\Guid\Fields::getClockSeq()
- 11.1.x vendor/ramsey/uuid/src/Rfc4122/Fields.php \Ramsey\Uuid\Rfc4122\Fields::getClockSeq()
Overrides FieldsInterface::getClockSeq
File
-
vendor/
ramsey/ uuid/ src/ Nonstandard/ Fields.php, line 70
Class
- Fields
- Nonstandard UUID fields do not conform to the RFC 4122 standard
Namespace
Ramsey\Uuid\NonstandardCode
public function getClockSeq() : Hexadecimal {
$clockSeq = hexdec(bin2hex(substr($this->bytes, 8, 2))) & 0x3fff;
return new Hexadecimal(str_pad(dechex($clockSeq), 4, '0', STR_PAD_LEFT));
}