| 1 |
<?php |
| 2 |
/** |
| 3 |
* This file is part of the ramsey/uuid library |
| 4 |
* |
| 5 |
* For the full copyright and license information, please view the LICENSE |
| 6 |
* file that was distributed with this source code. |
| 7 |
* |
| 8 |
* @copyright Copyright (c) Ben Ramsey <[email protected]> |
| 9 |
* @license http://opensource.org/licenses/MIT MIT |
| 10 |
* @link https://benramsey.com/projects/ramsey-uuid/ Documentation |
| 11 |
* @link https://packagist.org/packages/ramsey/uuid Packagist |
| 12 |
* @link https://github.com/ramsey/uuid GitHub |
| 13 |
*/ |
| 14 |
|
| 15 |
namespace Ramsey\Uuid\Builder; |
| 16 |
|
| 17 |
use Ramsey\Uuid\Codec\CodecInterface; |
| 18 |
use Ramsey\Uuid\UuidInterface; |
| 19 |
|
| 20 |
/** |
| 21 |
* UuidBuilderInterface builds instances UuidInterface |
| 22 |
*/ |
| 23 |
interface UuidBuilderInterface |
| 24 |
{ |
| 25 |
/** |
| 26 |
* Builds an instance of a UuidInterface |
| 27 |
* |
| 28 |
* @param CodecInterface $codec The codec to use for building this UuidInterface instance |
| 29 |
* @param array $fields An array of fields from which to construct a UuidInterface instance; |
| 30 |
* see {@see \Ramsey\Uuid\UuidInterface::getFieldsHex()} for array structure. |
| 31 |
* @return UuidInterface |
| 32 |
*/ |
| 33 |
public function build(CodecInterface $codec, array $fields); |
| 34 |
} |