Merge branch '4.x' into 5.x

This commit is contained in:
Ben Ramsey
2025-05-31 18:52:25 -05:00
91 changed files with 831 additions and 1316 deletions
+11 -16
View File
@@ -19,28 +19,23 @@ use Ramsey\Uuid\Type\Hexadecimal;
use Ramsey\Uuid\Type\Integer as IntegerObject;
/**
* A DCE Security generator generates strings of binary data based on a local
* domain, local identifier, node ID, clock sequence, and the current time
* A DCE Security generator generates strings of binary data based on a local domain, local identifier, node ID, clock
* sequence, and the current time
*
* @see UuidV2
*/
interface DceSecurityGeneratorInterface
{
/**
* Generate a binary string from a local domain, local identifier, node ID,
* clock sequence, and current time
* Generate a binary string from a local domain, local identifier, node ID, clock sequence, and current time
*
* @param int $localDomain The local domain to use when generating bytes,
* according to DCE Security
* @param IntegerObject|null $localIdentifier The local identifier for the
* given domain; this may be a UID or GID on POSIX systems, if the local
* domain is person or group, or it may be a site-defined identifier
* if the local domain is org
* @param Hexadecimal|positive-int|non-empty-string|null $node A 48-bit
* number representing the hardware address
* @param int<0, 63>|null $clockSeq A 6-bit number used to help avoid
* duplicates that could arise when the clock is set backwards in time
* or if the node ID changes
* @param int $localDomain The local domain to use when generating bytes, according to DCE Security
* @param IntegerObject | null $localIdentifier The local identifier for the given domain; this may be a UID or GID
* on POSIX systems if the local domain is "person" or "group," or it may be a site-defined identifier if the
* local domain is "org"
* @param Hexadecimal | positive-int | non-empty-string | null $node A 48-bit number representing the hardware address
* @param int<0, 63> | null $clockSeq A 6-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 non-empty-string A binary string
*/
@@ -48,6 +43,6 @@ interface DceSecurityGeneratorInterface
int $localDomain,
?IntegerObject $localIdentifier = null,
Hexadecimal | int | string | null $node = null,
?int $clockSeq = null
?int $clockSeq = null,
): string;
}