mirror of
https://github.com/ramsey/uuid.git
synced 2026-06-17 16:26:51 +03:00
28 lines
445 B
PHP
28 lines
445 B
PHP
<?php
|
|
|
|
namespace Rhumsaa\Uuid;
|
|
|
|
interface CodecInterface
|
|
{
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function encode(UuidInterface $uuid);
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function encodeBinary(UuidInterface $uuid);
|
|
|
|
/**
|
|
* @return UuidInterface
|
|
*/
|
|
public function decode($encodedUuid);
|
|
|
|
/**
|
|
* @param string $bytes
|
|
* @return UuidInterface
|
|
*/
|
|
public function decodeBytes($bytes);
|
|
}
|