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

Breadcrumb

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

function LazyUuidFromString::__unserialize

@psalm-param array{string?: non-empty-string} $data @psalm-suppress UnusedMethodCall

Parameters

array{string?: string} $data:

File

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

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 __unserialize(array $data) : void {
    // @codeCoverageIgnoreStart
    if (!isset($data['string'])) {
        throw new ValueError(sprintf('%s(): Argument #1 ($data) is invalid', __METHOD__));
    }
    // @codeCoverageIgnoreEnd
    $this->unserialize($data['string']);
}

API Navigation

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