Change the $node parameter from mixed to ?Hexadecimal

This commit is contained in:
Ben Ramsey
2020-02-24 13:44:03 -06:00
parent 614fc69b45
commit ab3c89fb8e
7 changed files with 72 additions and 25 deletions
+3 -3
View File
@@ -109,8 +109,8 @@ interface UuidFactoryInterface
* Returns a version 6 (ordered-time) UUID from a host ID, sequence number,
* and the current time
*
* @param int|string $node A 48-bit number representing the hardware address;
* this number may be represented as an integer or a hexadecimal string
* @param Hexadecimal|null $node A 48-bit number representing the hardware
* address
* @param int $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
@@ -118,7 +118,7 @@ interface UuidFactoryInterface
* @return UuidInterface A UuidInterface instance that represents a
* version 6 UUID
*/
public function uuid6($node = null, ?int $clockSeq = null): UuidInterface;
public function uuid6(?Hexadecimal $node = null, ?int $clockSeq = null): UuidInterface;
/**
* Creates a UUID from a byte string