FileAccess Orion

Hexadecimal
in package
implements TypeInterface

A value object representing a hexadecimal number

This class exists for type-safety purposes, to ensure that hexadecimal numbers returned from ramsey/uuid methods as strings are truly hexadecimal and not some other kind of string.

Tags
psalm-immutable

Interfaces, Classes, Traits and Enums

TypeInterface
TypeInterface ensures consistency in typed values returned by ramsey/uuid

Table of Contents

$value  : string
__construct()  : mixed
__toString()  : string
jsonSerialize()  : string
serialize()  : string
toString()  : string
unserialize()  : void
Constructs the object from a serialized string representation

Properties

Methods

__construct()

public __construct(string $value) : mixed
Parameters
$value : string

The hexadecimal value to store

Return values
mixed

__toString()

public __toString() : string
Return values
string

jsonSerialize()

public jsonSerialize() : string
Return values
string

serialize()

public serialize() : string
Return values
string

toString()

public toString() : string
Return values
string

unserialize()

Constructs the object from a serialized string representation

public unserialize(string $serialized) : void
Parameters
$serialized : string

The serialized string representation of the object

Tags
phpcsSuppress

SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint

Return values
void

Search results