mirror of
https://github.com/ramsey/uuid.git
synced 2026-06-16 16:17:43 +03:00
28 lines
444 B
PHP
28 lines
444 B
PHP
<?php
|
|
|
|
namespace Ramsey\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);
|
|
}
|