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

Breadcrumb

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

function CodecInterface::encodeBinary

Returns a binary string representation of a UuidInterface

@psalm-return non-empty-string

Parameters

UuidInterface $uuid The UUID for which to create a binary string: representation

Return value

string Binary string representation of a UUID

1 method overrides CodecInterface::encodeBinary()
StringCodec::encodeBinary in vendor/ramsey/uuid/src/Codec/StringCodec.php
@psalm-return non-empty-string @psalm-suppress MoreSpecificReturnType we know that the retrieved `string` is never empty @psalm-suppress LessSpecificReturnStatement we know that the retrieved `string` is never empty

File

vendor/ramsey/uuid/src/Codec/CodecInterface.php, line 48

Class

CodecInterface
A codec encodes and decodes a UUID according to defined rules

Namespace

Ramsey\Uuid\Codec

Code

public function encodeBinary(UuidInterface $uuid) : string;

API Navigation

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