Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Fields.php

function Fields::getClockSeq

Same name in this branch
  1. 11.1.x vendor/ramsey/uuid/src/Guid/Fields.php \Ramsey\Uuid\Guid\Fields::getClockSeq()
  2. 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\Nonstandard

Code

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));
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal