File tree 1 file changed +3
-3
lines changed 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -233,7 +233,7 @@ $timeInterface = new DateTime(); // DateTime implements DateTimeInterface
233
233
``` php
234
234
// Get Sonyflake ID
235
235
// optionally set machine_id, for server detection
236
- \Infocyph\UID\TBSL ::generate();
236
+ \Infocyph\UID\Sonyflake ::generate();
237
237
// alternatively
238
238
\Infocyph\UID\sonyflake();
239
239
```
@@ -242,15 +242,15 @@ $timeInterface = new DateTime(); // DateTime implements DateTimeInterface
242
242
``` php
243
243
// Parse Sonyflake ID
244
244
// returns [time => DateTimeInterface object, sequence, machine_id]
245
- \Infocyph\UID\TBSL ::parse($sonyflake);
245
+ \Infocyph\UID\Sonyflake ::parse($sonyflake);
246
246
```
247
247
- Specify start time for Sonyflake ID (a Sonyflake ID is unique upto 174 years from the start date):
248
248
249
249
``` php
250
250
// By default, the start time is set to `2020-01-01 00:00:00`, which is changeable
251
251
// but if changed, this should always stay same as long as your project lives
252
252
// & must call this before any Sonyflake call (generate/parse)
253
- \Infocyph\UID\TBSL ::setStartTimeStamp('2000-01-01 00:00:00');
253
+ \Infocyph\UID\Sonyflake ::setStartTimeStamp('2000-01-01 00:00:00');
254
254
```
255
255
256
256
### TBSL: Time-Based Keys with Lexicographic Sorting (library exclusive)
You can’t perform that action at this time.
0 commit comments