function StringCodec::encodeBinary
@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
Overrides CodecInterface::encodeBinary
2 methods override StringCodec::encodeBinary()
- OrderedTimeCodec::encodeBinary in vendor/
ramsey/ uuid/ src/ Codec/ OrderedTimeCodec.php - Returns a binary string representation of a UUID, with the timestamp fields rearranged for optimized storage
- TimestampFirstCombCodec::encodeBinary in vendor/
ramsey/ uuid/ src/ Codec/ TimestampFirstCombCodec.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/ StringCodec.php, line 69
Class
- StringCodec
- StringCodec encodes and decodes RFC 4122 UUIDs
Namespace
Ramsey\Uuid\CodecCode
public function encodeBinary(UuidInterface $uuid) : string {
/** @phpstan-ignore-next-line PHPStan complains that this is not a non-empty-string. */
return $uuid->getFields()
->getBytes();
}