PHP Class Ramsey\Uuid\Codec\OrderedTimeCodec

The string value will be unchanged from StringCodec. Only works for UUID type 1.
Inheritance: extends Ramsey\Uuid\Codec\StringCodec
Show file Open project: ramsey/uuid

Public Methods

Method Description
decodeBytes ( string $bytes ) : Ramsey\Uuid\UuidInterface Decodes an optimized binary representation of a UUID into a UuidInterface object instance
encodeBinary ( Ramsey\Uuid\UuidInterface $uuid ) : string Encodes a UuidInterface as an optimized binary representation of a UUID

Method Details

decodeBytes() public method

Decodes an optimized binary representation of a UUID into a UuidInterface object instance
public decodeBytes ( string $bytes ) : Ramsey\Uuid\UuidInterface
$bytes string
return Ramsey\Uuid\UuidInterface

encodeBinary() public method

Encodes a UuidInterface as an optimized binary representation of a UUID
public encodeBinary ( Ramsey\Uuid\UuidInterface $uuid ) : string
$uuid Ramsey\Uuid\UuidInterface
return string Binary string representation of a UUID