PluginProbe
Media Cloud Sync / 1.4.1
Media Cloud Sync v1.4.1
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 1.2.9 All 35 releases
← All changes | includes/sdk/google/ramsey/uuid/src/Codec/TimestampLastCombCodec.php +12 -15 1.0.21.4.1 View file →
@@ -9,26 +9,23 @@
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 15 /**
16 - * TimestampLastCombCodec encodes and decodes COMBs, with the timestamp as the
17 - * last 48 bits
16 + * TimestampLastCombCodec encodes and decodes COMBs, with the timestamp as the last 48 bits
18 17 *
19 - * The CombGenerator when used with the StringCodec (and, by proxy, the
20 - * TimestampLastCombCodec) adds the timestamp to the last 48 bits of the COMB.
21 - * The TimestampLastCombCodec is provided for the sake of consistency. In
22 - * practice, it is identical to the standard StringCodec but, it may be used
23 - * with the CombGenerator for additional context when reading code.
18 + * The CombGenerator when used with the StringCodec (and, by proxy, the TimestampLastCombCodec) adds the timestamp to
19 + * the last 48 bits of the COMB. The TimestampLastCombCodec is provided for the sake of consistency. In practice, it is
20 + * identical to the standard StringCodec, but it may be used with the CombGenerator for additional context when reading
21 + * code.
24 22 *
25 - * Consider the following code. By default, the codec used by UuidFactory is the
26 - * StringCodec, but here, we explicitly set the TimestampLastCombCodec. It is
27 - * redundant, but it is clear that we intend this COMB to be generated with the
23 + * Consider the following code. By default, the codec used by UuidFactory is the StringCodec, but here, we explicitly
24 + * set the TimestampLastCombCodec. It is redundant, but it is clear that we intend this COMB to be generated with the
28 25 * timestamp appearing at the end.
29 26 *
30 - * ``` php
27 + * ```
31 28 * $factory = new UuidFactory();
32 29 *
33 30 * $factory->setCodec(new TimestampLastCombCodec($factory->getUuidBuilder()));
34 31 *
@@ -33,17 +30,17 @@
33 30 * $factory->setCodec(new TimestampLastCombCodec($factory->getUuidBuilder()));
34 31 *
35 32 * $factory->setRandomGenerator(new CombGenerator(
36 33 * $factory->getRandomGenerator(),
37 - * $factory->getNumberConverter()
34 + * $factory->getNumberConverter(),
38 35 * ));
39 36 *
40 37 * $timestampLastComb = $factory->uuid4();
41 38 * ```
42 39 *
43 - * @link https://www.informit.com/articles/printerfriendly/25862 The Cost of GUIDs as Primary Keys
40 + * @deprecated Please use {@see StringCodec} instead.
44 41 *
45 - * @psalm-immutable
42 + * @immutable
46 43 */
47 44 class TimestampLastCombCodec extends StringCodec
48 45 {
49 46 }