Add getTimestamp() and getClockSeq() to FieldsInterface

This commit is contained in:
Ben Ramsey
2020-01-09 16:05:21 -06:00
parent d665ec8e88
commit 1e26916bf6
7 changed files with 84 additions and 0 deletions
+11
View File
@@ -38,6 +38,12 @@ use Ramsey\Uuid\Fields\FieldsInterface as BaseFieldsInterface;
*/
interface FieldsInterface extends BaseFieldsInterface
{
/**
* Returns the full 16-bit clock sequence, with the variant bits (two most
* significant bits) masked out
*/
public function getClockSeq(): string;
/**
* Returns the high field of the clock sequence multiplexed with the variant
*/
@@ -68,6 +74,11 @@ interface FieldsInterface extends BaseFieldsInterface
*/
public function getTimeMid(): string;
/**
* Returns the full 60-bit timestamp, without the version
*/
public function getTimestamp(): string;
/**
* Returns the variant
*