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
Interfaces, Classes, Traits and Enums
- TypeInterface
- TypeInterface ensures consistency in typed values returned by ramsey/uuid
Table of Contents
- $value : string
- __construct() : mixed
- __serialize() : array<string|int, mixed>
- __toString() : string
- __unserialize() : void
- jsonSerialize() : string
- serialize() : string
- toString() : string
- unserialize() : void
- Constructs the object from a serialized string representation
Properties
$value
private
string
$value
Methods
__construct()
public
__construct(string $value) : mixed
Parameters
- $value : string
-
The hexadecimal value to store
Return values
mixed —__serialize()
public
__serialize() : array<string|int, mixed>
Return values
array<string|int, mixed> —__toString()
public
__toString() : string
Return values
string —__unserialize()
public
__unserialize(array<string|int, mixed> $data) : void
Parameters
- $data : array<string|int, mixed>
Return values
void —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