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

Breadcrumb

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

function DegradedUuidBuilder::build

Builds and returns a DegradedUuid

@psalm-pure

Parameters

CodecInterface $codec The codec to use for building this DegradedUuid instance:

string $bytes The byte string from which to construct a UUID:

Return value

DegradedUuid The DegradedUuidBuild returns an instance of Ramsey\Uuid\DegradedUuid

Overrides UuidBuilderInterface::build

File

vendor/ramsey/uuid/src/Builder/DegradedUuidBuilder.php, line 58

Class

DegradedUuidBuilder
@psalm-immutable

Namespace

Ramsey\Uuid\Builder

Code

public function build(CodecInterface $codec, string $bytes) : UuidInterface {
    return new DegradedUuid(new Rfc4122Fields($bytes), $this->numberConverter, $codec, $this->timeConverter);
}

API Navigation

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