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
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\LazyCode
public function getLeastSignificantBits() : string {
$instance = $this->unwrapped ?? $this->unwrap();
return $instance->getNumberConverter()
->fromHex(substr($instance->getHex()
->toString(), 16));
}