PeclUuidTimeGenerator
in package
implements
TimeGeneratorInterface
PeclUuidTimeGenerator generates strings of binary data for time-base UUIDs, using ext-uuid
Tags
Interfaces, Classes, Traits and Enums
- TimeGeneratorInterface
- A time generator generates strings of binary data based on a node ID, clock sequence, and the current time
Table of Contents
- generate() : string
- Generate a binary string from a node ID, clock sequence, and current time
Methods
generate()
Generate a binary string from a node ID, clock sequence, and current time
public
generate([mixed $node = null ][, int|null $clockSeq = null ]) : string
Parameters
- $node : mixed = null
-
A 48-bit number representing the hardware address; this number may be represented as an integer or a hexadecimal string
- $clockSeq : int|null = null
-
A 14-bit number used to help avoid duplicates that could arise when the clock is set backwards in time or if the node ID changes
Tags
Return values
string —A binary string