function GenericNumberConverter::fromHex
@inheritDoc @psalm-pure @psalm-return numeric-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
Overrides NumberConverterInterface::fromHex
File
-
vendor/
ramsey/ uuid/ src/ Converter/ Number/ GenericNumberConverter.php, line 40
Class
- GenericNumberConverter
- GenericNumberConverter uses the provided calculator to convert decimal numbers to and from hexadecimal values
Namespace
Ramsey\Uuid\Converter\NumberCode
public function fromHex(string $hex) : string {
return $this->calculator
->fromBase($hex, 16)
->toString();
}