Hexadecimal
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.
- Full name:
\Ramsey\Uuid\Type\Hexadecimal
- This class is marked as final and can't be subclassed
- This class implements:
\Ramsey\Uuid\Type\TypeInterface
- This class is a Final class
Properties
value
Methods
__construct
Parameters:
Parameter | Type | Description |
---|---|---|
$value |
self|string | The hexadecimal value to store |
toString
__toString
jsonSerialize
serialize
__serialize
unserialize
Constructs the object from a serialized string representation
Parameters:
Parameter | Type | Description |
---|---|---|
$data |
string | The serialized string representation of the object |
__unserialize
Parameters:
Parameter | Type | Description |
---|---|---|
$data |
array{string?: string} |
prepareValue
Parameters:
Parameter | Type | Description |
---|---|---|
$value |
string |
Automatically generated on 2025-03-18