Change return type of Uuid::getFields() to FieldsInterface

This commit is contained in:
Ben Ramsey
2020-01-09 19:03:06 -06:00
parent e5c45c70f5
commit 10624f64a1
11 changed files with 147 additions and 137 deletions
+6
View File
@@ -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
*/