34 lines
682 B
YAML
34 lines
682 B
YAML
name: UuidV7
|
|
class_comment: '# * A v7 UUID is lexicographically sortable and contains a 48-bit
|
|
timestamp and 74 extra unique bits.
|
|
|
|
# *
|
|
|
|
# * Within the same millisecond, monotonicity is ensured by incrementing the random
|
|
part by a random increment.
|
|
|
|
# *
|
|
|
|
# * @author Nicolas Grekas <p@tchwork.com>'
|
|
dependencies: []
|
|
properties: []
|
|
methods:
|
|
- name: __construct
|
|
visibility: public
|
|
parameters:
|
|
- name: uuid
|
|
default: 'null'
|
|
comment: null
|
|
- name: getDateTime
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: generate
|
|
visibility: public
|
|
parameters:
|
|
- name: time
|
|
default: 'null'
|
|
comment: null
|
|
traits: []
|
|
interfaces:
|
|
- TimeBasedUidInterface
|