function CodecInterface::encode
Returns a hexadecimal string representation of a UuidInterface
@psalm-return non-empty-string
Parameters
UuidInterface $uuid The UUID for which to create a hexadecimal: string representation
Return value
string Hexadecimal string representation of a UUID
1 method overrides CodecInterface::encode()
- StringCodec::encode in vendor/
ramsey/ uuid/ src/ Codec/ StringCodec.php - Returns a hexadecimal string representation of a UuidInterface
File
-
vendor/
ramsey/ uuid/ src/ Codec/ CodecInterface.php, line 36
Class
- CodecInterface
- A codec encodes and decodes a UUID according to defined rules
Namespace
Ramsey\Uuid\CodecCode
public function encode(UuidInterface $uuid) : string;