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