PluginProbe
WCPOS – Point of Sale (POS) plugin for WooCommerce / 1.10.20
WCPOS – Point of Sale (POS) plugin for WooCommerce v1.10.20
1.10.20 1.10.19 1.10.18 1.10.17 1.10.16 1.10.15 1.10.13 1.10.14 1.10.12 1.10.11 1.10.10 1.10.9 1.10.8 untagged-3d9b7ccddc54df87c672 1.10.7 1.10.6 1.10.5 1.10.3 1.10.4 1.10.2 1.10.1 1.10.0 1.9.17 1.9.15 1.9.16 All 164 releases
woocommerce-pos / vendor / ramsey / uuid / src / DeprecatedUuidInterface.php

DeprecatedUuidInterface.php in WCPOS – Point of Sale (POS) plugin for WooCommerce 1.10.20, at vendor/ramsey/uuid/src/DeprecatedUuidInterface.php

148 lines 5.3 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
13 declare(strict_types=1);
14
15 namespace Ramsey\Uuid;
16
17 use DateTimeInterface;
18 use Ramsey\Uuid\Converter\NumberConverterInterface;
19
20 /**
21 * This interface encapsulates deprecated methods for ramsey/uuid; this
22 * interface and its methods will be removed in ramsey/uuid 5.0.0.
23 *
24 * @psalm-immutable
25 */
26 interface DeprecatedUuidInterface
27 {
28 /**
29 * @deprecated This method will be removed in 5.0.0. There is no alternative
30 * recommendation, so plan accordingly.
31 */
32 public function getNumberConverter(): NumberConverterInterface;
33
34 /**
35 * @deprecated Use {@see UuidInterface::getFields()} to get a
36 * {@see FieldsInterface} instance.
37 *
38 * @return string[]
39 */
40 public function getFieldsHex(): array;
41
42 /**
43 * @deprecated Use {@see UuidInterface::getFields()} to get a
44 * {@see FieldsInterface} instance. If it is a
45 * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call
46 * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getClockSeqHiAndReserved()}.
47 */
48 public function getClockSeqHiAndReservedHex(): string;
49
50 /**
51 * @deprecated Use {@see UuidInterface::getFields()} to get a
52 * {@see FieldsInterface} instance. If it is a
53 * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call
54 * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getClockSeqLow()}.
55 */
56 public function getClockSeqLowHex(): string;
57
58 /**
59 * @deprecated Use {@see UuidInterface::getFields()} to get a
60 * {@see FieldsInterface} instance. If it is a
61 * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call
62 * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getClockSeq()}.
63 */
64 public function getClockSequenceHex(): string;
65
66 /**
67 * @deprecated In ramsey/uuid version 5.0.0, this will be removed from the
68 * interface. It is available at {@see UuidV1::getDateTime()}.
69 */
70 public function getDateTime(): DateTimeInterface;
71
72 /**
73 * @deprecated This method will be removed in 5.0.0. There is no direct
74 * alternative, but the same information may be obtained by splitting
75 * in half the value returned by {@see UuidInterface::getHex()}.
76 */
77 public function getLeastSignificantBitsHex(): string;
78
79 /**
80 * @deprecated This method will be removed in 5.0.0. There is no direct
81 * alternative, but the same information may be obtained by splitting
82 * in half the value returned by {@see UuidInterface::getHex()}.
83 */
84 public function getMostSignificantBitsHex(): string;
85
86 /**
87 * @deprecated Use {@see UuidInterface::getFields()} to get a
88 * {@see FieldsInterface} instance. If it is a
89 * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call
90 * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getNode()}.
91 */
92 public function getNodeHex(): string;
93
94 /**
95 * @deprecated Use {@see UuidInterface::getFields()} to get a
96 * {@see FieldsInterface} instance. If it is a
97 * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call
98 * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getTimeHiAndVersion()}.
99 */
100 public function getTimeHiAndVersionHex(): string;
101
102 /**
103 * @deprecated Use {@see UuidInterface::getFields()} to get a
104 * {@see FieldsInterface} instance. If it is a
105 * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call
106 * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getTimeLow()}.
107 */
108 public function getTimeLowHex(): string;
109
110 /**
111 * @deprecated Use {@see UuidInterface::getFields()} to get a
112 * {@see FieldsInterface} instance. If it is a
113 * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call
114 * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getTimeMid()}.
115 */
116 public function getTimeMidHex(): string;
117
118 /**
119 * @deprecated Use {@see UuidInterface::getFields()} to get a
120 * {@see FieldsInterface} instance. If it is a
121 * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call
122 * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getTimestamp()}.
123 */
124 public function getTimestampHex(): string;
125
126 /**
127 * @deprecated In ramsey/uuid version 5.0.0, this will be removed from this
128 * interface. It has moved to {@see \Ramsey\Uuid\Rfc4122\UuidInterface::getUrn()}.
129 */
130 public function getUrn(): string;
131
132 /**
133 * @deprecated Use {@see UuidInterface::getFields()} to get a
134 * {@see FieldsInterface} instance. If it is a
135 * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call
136 * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getVariant()}.
137 */
138 public function getVariant(): ?int;
139
140 /**
141 * @deprecated Use {@see UuidInterface::getFields()} to get a
142 * {@see FieldsInterface} instance. If it is a
143 * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call
144 * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getVersion()}.
145 */
146 public function getVersion(): ?int;
147 }
148