| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* This file is part of the ramsey/uuid library |
| 5 |
* |
| 6 |
* For the full copyright and license information, please view the LICENSE |
| 7 |
* file that was distributed with this source code. |
| 8 |
* |
| 9 |
* @copyright Copyright (c) Ben Ramsey <[email protected]> |
| 10 |
* @license http://opensource.org/licenses/MIT MIT |
| 11 |
*/ |
| 12 |
declare (strict_types=1); |
| 13 |
namespace Dudlewebs\WPMCS\Ramsey\Uuid\Builder; |
| 14 |
|
| 15 |
use Dudlewebs\WPMCS\Ramsey\Uuid\Codec\CodecInterface; |
| 16 |
use Dudlewebs\WPMCS\Ramsey\Uuid\UuidInterface; |
| 17 |
/** |
| 18 |
* A UUID builder builds instances of UuidInterface |
| 19 |
* |
| 20 |
* @psalm-immutable |
| 21 |
*/ |
| 22 |
interface UuidBuilderInterface |
| 23 |
{ |
| 24 |
/** |
| 25 |
* Builds and returns a UuidInterface |
| 26 |
* |
| 27 |
* @param CodecInterface $codec The codec to use for building this UuidInterface instance |
| 28 |
* @param string $bytes The byte string from which to construct a UUID |
| 29 |
* |
| 30 |
* @return UuidInterface Implementations may choose to return more specific |
| 31 |
* instances of UUIDs that implement UuidInterface |
| 32 |
* |
| 33 |
* @psalm-pure |
| 34 |
*/ |
| 35 |
public function build(CodecInterface $codec, string $bytes): UuidInterface; |
| 36 |
} |
| 37 |
|