← All changes
|
includes/sdk/google/ramsey/uuid/src/Codec/CodecInterface.php
+21
-23
1.1.0
→
1.4.1
View file →
| @@ -9,15 +9,15 @@ | ||
| 9 | 9 | * @copyright Copyright (c) Ben Ramsey <ben@benramsey.com> |
| 10 | 10 | * @license http://opensource.org/licenses/MIT MIT |
| 11 | 11 | */ |
| 12 | 12 | declare (strict_types=1); |
| 13 | -namespace Dudlewebs\WPMCS\Ramsey\Uuid\Codec; | |
| 13 | +namespace Dudlewebs\WPMCS\GCP\Ramsey\Uuid\Codec; | |
| 14 | 14 | |
| 15 | -use Dudlewebs\WPMCS\Ramsey\Uuid\UuidInterface; | |
| 15 | +use Dudlewebs\WPMCS\GCP\Ramsey\Uuid\UuidInterface; | |
| 16 | 16 | /** |
| 17 | 17 | * A codec encodes and decodes a UUID according to defined rules |
| 18 | 18 | * |
| 19 | - * @psalm-immutable | |
| 19 | + * @immutable | |
| 20 | 20 | */ |
| 21 | 21 | interface CodecInterface |
| 22 | 22 | { |
| 23 | 23 | /** |
| @@ -22,44 +22,42 @@ | ||
| 22 | 22 | { |
| 23 | 23 | /** |
| 24 | 24 | * Returns a hexadecimal string representation of a UuidInterface |
| 25 | 25 | * |
| 26 | - * @param UuidInterface $uuid The UUID for which to create a hexadecimal | |
| 27 | - * string representation | |
| 26 | + * @param UuidInterface $uuid The UUID for which to create a hexadecimal string representation | |
| 28 | 27 | * |
| 29 | - * @return string Hexadecimal string representation of a UUID | |
| 28 | + * @return non-empty-string Hexadecimal string representation of a UUID | |
| 30 | 29 | * |
| 31 | - * @psalm-return non-empty-string | |
| 30 | + * @pure | |
| 32 | 31 | */ |
| 33 | - public function encode(UuidInterface $uuid): string; | |
| 32 | + public function encode(UuidInterface $uuid) : string; | |
| 34 | 33 | /** |
| 35 | 34 | * Returns a binary string representation of a UuidInterface |
| 36 | 35 | * |
| 37 | - * @param UuidInterface $uuid The UUID for which to create a binary string | |
| 38 | - * representation | |
| 36 | + * @param UuidInterface $uuid The UUID for which to create a binary string representation | |
| 39 | 37 | * |
| 40 | - * @return string Binary string representation of a UUID | |
| 38 | + * @return non-empty-string Binary string representation of a UUID | |
| 41 | 39 | * |
| 42 | - * @psalm-return non-empty-string | |
| 40 | + * @pure | |
| 43 | 41 | */ |
| 44 | - public function encodeBinary(UuidInterface $uuid): string; | |
| 42 | + public function encodeBinary(UuidInterface $uuid) : string; | |
| 45 | 43 | /** |
| 46 | 44 | * Returns a UuidInterface derived from a hexadecimal string representation |
| 47 | 45 | * |
| 48 | - * @param string $encodedUuid The hexadecimal string representation to | |
| 49 | - * convert into a UuidInterface instance | |
| 46 | + * @param string $encodedUuid The hexadecimal string representation to convert into a UuidInterface instance | |
| 50 | 47 | * |
| 51 | - * @return UuidInterface An instance of a UUID decoded from a hexadecimal | |
| 52 | - * string representation | |
| 48 | + * @return UuidInterface An instance of a UUID decoded from a hexadecimal string representation | |
| 49 | + * | |
| 50 | + * @pure | |
| 53 | 51 | */ |
| 54 | - public function decode(string $encodedUuid): UuidInterface; | |
| 52 | + public function decode(string $encodedUuid) : UuidInterface; | |
| 55 | 53 | /** |
| 56 | 54 | * Returns a UuidInterface derived from a binary string representation |
| 57 | 55 | * |
| 58 | - * @param string $bytes The binary string representation to convert into a | |
| 59 | - * UuidInterface instance | |
| 56 | + * @param string $bytes The binary string representation to convert into a UuidInterface instance | |
| 60 | 57 | * |
| 61 | - * @return UuidInterface An instance of a UUID decoded from a binary string | |
| 62 | - * representation | |
| 58 | + * @return UuidInterface An instance of a UUID decoded from a binary string representation | |
| 59 | + * | |
| 60 | + * @pure | |
| 63 | 61 | */ |
| 64 | - public function decodeBytes(string $bytes): UuidInterface; | |
| 62 | + public function decodeBytes(string $bytes) : UuidInterface; | |
| 65 | 63 | } |