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

Breadcrumb

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

function LazyUuidFromString::unwrap

@psalm-suppress ImpureMethodCall the retrieval of the factory is a clear violation of purity here: this is a known pitfall of the design of this library, where a value object contains a mutable reference to a factory. We use a fixed factory here, so the violation will not have real-world effects, as this object is only instantiated with the default factory settings/features. @psalm-suppress InaccessibleProperty property { outside world, so we should be fine here.

See also

$unwrapped} is used as a Cache API: we don't expose it to the

12 calls to LazyUuidFromString::unwrap()
LazyUuidFromString::getClockSeqHiAndReserved in vendor/ramsey/uuid/src/Lazy/LazyUuidFromString.php
@psalm-suppress UndefinedInterfaceMethod @psalm-suppress DeprecatedMethod @psalm-suppress MixedArgument @psalm-suppress MixedMethodCall
LazyUuidFromString::getClockSeqLow in vendor/ramsey/uuid/src/Lazy/LazyUuidFromString.php
@psalm-suppress UndefinedInterfaceMethod @psalm-suppress DeprecatedMethod @psalm-suppress MixedArgument @psalm-suppress MixedMethodCall
LazyUuidFromString::getClockSequence in vendor/ramsey/uuid/src/Lazy/LazyUuidFromString.php
@psalm-suppress UndefinedInterfaceMethod @psalm-suppress DeprecatedMethod @psalm-suppress MixedArgument @psalm-suppress MixedMethodCall
LazyUuidFromString::getLeastSignificantBits in vendor/ramsey/uuid/src/Lazy/LazyUuidFromString.php
@psalm-suppress UndefinedInterfaceMethod @psalm-suppress DeprecatedMethod @psalm-suppress MixedArgument @psalm-suppress MixedMethodCall
LazyUuidFromString::getMostSignificantBits in vendor/ramsey/uuid/src/Lazy/LazyUuidFromString.php
@psalm-suppress UndefinedInterfaceMethod @psalm-suppress DeprecatedMethod @psalm-suppress MixedArgument @psalm-suppress MixedMethodCall

... See full list

File

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

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

private function unwrap() : UuidInterface {
    return $this->unwrapped = (new UuidFactory())->fromString($this->uuid);
}

API Navigation

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