mirror of
https://github.com/ramsey/uuid.git
synced 2026-06-17 16:26:51 +03:00
Add getTimestamp() and getClockSeq() to FieldsInterface
This commit is contained in:
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user