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

Breadcrumb

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

function LazyUuidFromString::getLeastSignificantBits

@psalm-suppress UndefinedInterfaceMethod @psalm-suppress DeprecatedMethod @psalm-suppress MixedArgument @psalm-suppress MixedMethodCall

Deprecated

This method will be removed in 5.0.0. There is no direct alternative, but the same information may be obtained by splitting in half the value returned by {

See also

UuidInterface::getHex()}.

File

vendor/ramsey/uuid/src/Lazy/LazyUuidFromString.php, line 389

Class

LazyUuidFromString
Lazy version of a UUID: its format has not been determined yet, so it is mostly only usable for string/bytes conversion. This object optimizes instantiation, serialization and string conversion time, at the cost of increased overhead for more advanced…

Namespace

Ramsey\Uuid\Lazy

Code

public function getLeastSignificantBits() : string {
    $instance = $this->unwrapped ?? $this->unwrap();
    return $instance->getNumberConverter()
        ->fromHex(substr($instance->getHex()
        ->toString(), 16));
}

API Navigation

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