function CodecInterface::encodeBinary
Returns a binary string representation of a UuidInterface
@psalm-return non-empty-string
Parameters
UuidInterface $uuid The UUID for which to create a binary string: representation
Return value
string Binary string representation of a UUID
1 method overrides CodecInterface::encodeBinary()
- StringCodec::encodeBinary in vendor/
ramsey/ uuid/ src/ Codec/ StringCodec.php - @psalm-return non-empty-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
File
-
vendor/
ramsey/ uuid/ src/ Codec/ CodecInterface.php, line 48
Class
- CodecInterface
- A codec encodes and decodes a UUID according to defined rules
Namespace
Ramsey\Uuid\CodecCode
public function encodeBinary(UuidInterface $uuid) : string;