class DegradedNumberConverter implements NumberConverterInterface (View source)

DegradedNumberConverter throws UnsatisfiedDependencyException exceptions if attempting to use number conversion functionality in an environment that does not support large integers (i.e. when moontoast/math is not available)

Methods

mixed
fromHex(string $hex)

Throws an UnsatisfiedDependencyException

string
toHex(mixed $integer)

Throws an UnsatisfiedDependencyException

Details

mixed fromHex(string $hex)

Throws an UnsatisfiedDependencyException

Parameters

string $hex The hexadecimal string representation to convert

Return Value

mixed

Exceptions

UnsatisfiedDependencyException

string toHex(mixed $integer)

Throws an UnsatisfiedDependencyException

Parameters

mixed $integer An integer representation to convert; this may be a true integer, a string integer, or a object representation that this converter can understand

Return Value

string Hexadecimal string

Exceptions

UnsatisfiedDependencyException