Rename Type\IntegerValue to Type\Integer

Rename `Type\IntegerValue` to `Type\Integer`. It was originally named
`IntegerValue` because static analysis sees `Integer` in docblock
annotations and treats it as the native `int` type. `Integer` is not a
reserved word in PHP, so it should be named `Integer` for consistency
with other types in this library. When using it, a class alias prevents
static analysis from complaining.
This commit is contained in:
Ben Ramsey
2020-02-21 11:59:49 -06:00
parent 303b973c5c
commit f42afcecbb
22 changed files with 109 additions and 100 deletions
@@ -16,7 +16,7 @@ namespace Ramsey\Uuid\Generator;
use Ramsey\Uuid\Rfc4122\UuidV2;
use Ramsey\Uuid\Type\Hexadecimal;
use Ramsey\Uuid\Type\IntegerValue;
use Ramsey\Uuid\Type\Integer as IntegerObject;
/**
* A DCE Security generator generates strings of binary data based on a local
@@ -32,7 +32,7 @@ interface DceSecurityGeneratorInterface
*
* @param int $localDomain The local domain to use when generating bytes,
* according to DCE Security
* @param IntegerValue|null $localIdentifier The local identifier for the
* @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
@@ -46,7 +46,7 @@ interface DceSecurityGeneratorInterface
*/
public function generate(
int $localDomain,
?IntegerValue $localIdentifier = null,
?IntegerObject $localIdentifier = null,
?Hexadecimal $node = null,
?int $clockSeq = null
): string;