PluginProbe
Media Cloud Sync / 1.2.8
Media Cloud Sync v1.2.8
1.4.2 1.4.1 1.4.0 1.3.12 1.3.11 1.3.10 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.2.0 1.2.10 1.2.11 1.2.12 1.2.13 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 All 36 releases
media-cloud-sync / includes / sdk / google / ramsey / uuid / src / Converter / NumberConverterInterface.php

NumberConverterInterface.php in Media Cloud Sync 1.2.8, at includes/sdk/google/ramsey/uuid/src/Converter/NumberConverterInterface.php

55 lines 1.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * This file is part of the ramsey/uuid library
5 *
6 * For the full copyright and license information, please view the LICENSE
7 * file that was distributed with this source code.
8 *
9 * @copyright Copyright (c) Ben Ramsey <[email protected]>
10 * @license http://opensource.org/licenses/MIT MIT
11 */
12 declare (strict_types=1);
13 namespace Dudlewebs\WPMCS\Ramsey\Uuid\Converter;
14
15 /**
16 * A number converter converts UUIDs from hexadecimal characters into
17 * representations of integers and vice versa
18 *
19 * @psalm-immutable
20 */
21 interface NumberConverterInterface
22 {
23 /**
24 * Converts a hexadecimal number into an string integer representation of
25 * the number
26 *
27 * The integer representation returned is a string representation of the
28 * integer, to accommodate unsigned integers greater than PHP_INT_MAX.
29 *
30 * @param string $hex The hexadecimal string representation to convert
31 *
32 * @return string String representation of an integer
33 *
34 * @psalm-return numeric-string
35 *
36 * @psalm-pure
37 */
38 public function fromHex(string $hex): string;
39 /**
40 * Converts a string integer representation into a hexadecimal string
41 * representation of the number
42 *
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.
46 *
47 * @return string Hexadecimal string
48 *
49 * @psalm-return non-empty-string
50 *
51 * @psalm-pure
52 */
53 public function toHex(string $number): string;
54 }
55