← All changes
|
includes/sdk/google/ramsey/uuid/src/Converter/NumberConverterInterface.php
+15
-23
1.2.13
→
1.4.2
View file →
| @@ -9,46 +9,38 @@ | ||
| 9 | 9 | * @copyright Copyright (c) Ben Ramsey <[email protected]> |
| 10 | 10 | * @license http://opensource.org/licenses/MIT MIT |
| 11 | 11 | */ |
| 12 | 12 | declare (strict_types=1); |
| 13 | -namespace Dudlewebs\WPMCS\Ramsey\Uuid\Converter; | |
| 13 | +namespace Dudlewebs\WPMCS\GCP\Ramsey\Uuid\Converter; | |
| 14 | 14 | |
| 15 | 15 | /** |
| 16 | - * A number converter converts UUIDs from hexadecimal characters into | |
| 17 | - * representations of integers and vice versa | |
| 16 | + * A number converter converts UUIDs from hexadecimal characters into representations of integers and vice versa | |
| 18 | 17 | * |
| 19 | - * @psalm-immutable | |
| 18 | + * @immutable | |
| 20 | 19 | */ |
| 21 | 20 | interface NumberConverterInterface |
| 22 | 21 | { |
| 23 | 22 | /** |
| 24 | - * Converts a hexadecimal number into an string integer representation of | |
| 25 | - * the number | |
| 23 | + * Converts a hexadecimal number into a string integer representation of the number | |
| 26 | 24 | * |
| 27 | - * The integer representation returned is a string representation of the | |
| 28 | - * integer, to accommodate unsigned integers greater than PHP_INT_MAX. | |
| 25 | + * The integer representation returned is a string representation of the integer to accommodate unsigned integers | |
| 26 | + * that are greater than `PHP_INT_MAX`. | |
| 29 | 27 | * |
| 30 | 28 | * @param string $hex The hexadecimal string representation to convert |
| 31 | 29 | * |
| 32 | - * @return string String representation of an integer | |
| 30 | + * @return numeric-string String representation of an integer | |
| 33 | 31 | * |
| 34 | - * @psalm-return numeric-string | |
| 35 | - * | |
| 36 | - * @psalm-pure | |
| 32 | + * @pure | |
| 37 | 33 | */ |
| 38 | - public function fromHex(string $hex): string; | |
| 34 | + public function fromHex(string $hex) : string; | |
| 39 | 35 | /** |
| 40 | - * Converts a string integer representation into a hexadecimal string | |
| 41 | - * representation of the number | |
| 36 | + * Converts a string integer representation into a hexadecimal string representation of the number | |
| 42 | 37 | * |
| 43 | - * @param string $number A string integer representation to convert; this | |
| 44 | - * must be a numeric string to accommodate unsigned integers greater | |
| 45 | - * than PHP_INT_MAX. | |
| 38 | + * @param string $number A string integer representation to convert; this must be a numeric string to accommodate | |
| 39 | + * unsigned integers that are greater than `PHP_INT_MAX`. | |
| 46 | 40 | * |
| 47 | - * @return string Hexadecimal string | |
| 41 | + * @return non-empty-string Hexadecimal string | |
| 48 | 42 | * |
| 49 | - * @psalm-return non-empty-string | |
| 50 | - * | |
| 51 | - * @psalm-pure | |
| 43 | + * @pure | |
| 52 | 44 | */ |
| 53 | - public function toHex(string $number): string; | |
| 45 | + public function toHex(string $number) : string; | |
| 54 | 46 | } |