Documentation

CodecInterface

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

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

Search results