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
+2 -2
View File
@@ -17,7 +17,7 @@ namespace Ramsey\Uuid;
use JsonSerializable;
use Ramsey\Uuid\Fields\FieldsInterface;
use Ramsey\Uuid\Type\Hexadecimal;
use Ramsey\Uuid\Type\IntegerValue;
use Ramsey\Uuid\Type\Integer as IntegerObject;
use Serializable;
/**
@@ -81,7 +81,7 @@ interface UuidInterface extends
/**
* Returns the integer value of the UUID as a string
*/
public function getInteger(): IntegerValue;
public function getInteger(): IntegerObject;
/**
* Returns a string representation of the UUID