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

Breadcrumb

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

function NumberConverterInterface::toHex

Converts a string integer representation into a hexadecimal string representation of the number

@psalm-return non-empty-string

@psalm-pure

Parameters

string $number A string integer representation to convert; this: must be a numeric string to accommodate unsigned integers greater than PHP_INT_MAX.

Return value

string Hexadecimal string

2 methods override NumberConverterInterface::toHex()
BigNumberConverter::toHex in vendor/ramsey/uuid/src/Converter/Number/BigNumberConverter.php
@inheritDoc @psalm-pure
GenericNumberConverter::toHex in vendor/ramsey/uuid/src/Converter/Number/GenericNumberConverter.php
@inheritDoc @psalm-pure @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/Converter/NumberConverterInterface.php, line 56

Class

NumberConverterInterface
A number converter converts UUIDs from hexadecimal characters into representations of integers and vice versa

Namespace

Ramsey\Uuid\Converter

Code

public function toHex(string $number) : string;

API Navigation

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