mirror of
https://github.com/ramsey/uuid.git
synced 2026-06-16 16:17:43 +03:00
Change return type of Uuid::getFields() to FieldsInterface
This commit is contained in:
@@ -17,6 +17,7 @@ namespace Ramsey\Uuid;
|
||||
use DateTimeInterface;
|
||||
use JsonSerializable;
|
||||
use Ramsey\Uuid\Converter\NumberConverterInterface;
|
||||
use Ramsey\Uuid\Fields\FieldsInterface;
|
||||
use Serializable;
|
||||
|
||||
/**
|
||||
@@ -62,6 +63,11 @@ interface UuidInterface extends JsonSerializable, Serializable
|
||||
*/
|
||||
public function getBytes(): string;
|
||||
|
||||
/**
|
||||
* Returns the fields that comprise this UUID
|
||||
*/
|
||||
public function getFields(): FieldsInterface;
|
||||
|
||||
/**
|
||||
* Returns the number converter to use when converting hex values to/from integers
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user