CodecInterface
in
CodecInterface represents a UUID coder-decoder
Table of Contents
- decode() : UuidInterface
- Decodes a string representation of a UUID into a UuidInterface object instance
- decodeBytes() : UuidInterface
- Decodes a binary representation of a UUID into a UuidInterface object instance
- encode() : string
- Encodes a UuidInterface as a string representation of a UUID
- encodeBinary() : string
- Encodes a UuidInterface as a binary representation of a UUID
Methods
decode()
Decodes a string representation of a UUID into a UuidInterface object instance
public
decode(string $encodedUuid) : UuidInterface
Parameters
- $encodedUuid : string
Tags
Return values
UuidInterface —decodeBytes()
Decodes a binary representation of a UUID into a UuidInterface object instance
public
decodeBytes(string $bytes) : UuidInterface
Parameters
- $bytes : string
Tags
Return values
UuidInterface —encode()
Encodes a UuidInterface as a string representation of a UUID
public
encode(UuidInterface $uuid) : string
Parameters
- $uuid : UuidInterface
Return values
string —Hexadecimal string representation of a UUID
encodeBinary()
Encodes a UuidInterface as a binary representation of a UUID
public
encodeBinary(UuidInterface $uuid) : string
Parameters
- $uuid : UuidInterface
Return values
string —Binary string representation of a UUID