Add static Uuid::uuid2() method

This commit is contained in:
Ben Ramsey
2020-01-18 14:14:47 -06:00
parent 72a2312f62
commit 268e66aad8
5 changed files with 39 additions and 3 deletions
+4 -1
View File
@@ -61,10 +61,13 @@ interface UuidFactoryInterface
* @param int|null $clockSeq A 14-bit number used to help avoid duplicates
* that could arise when the clock is set backwards in time or if the
* node ID changes
*
* @return UuidInterface A UuidInterface instance that represents a
* version 2 UUID
*/
public function uuid2(
int $localDomain,
?IntegerValue $localIdentifier,
?IntegerValue $localIdentifier = null,
?Hexadecimal $node = null,
?int $clockSeq = null
): UuidInterface;