function TimeGeneratorInterface::generate
Generate a binary string from a node ID, clock sequence, and current time
Parameters
Hexadecimal|int|string|null $node A 48-bit number representing the: hardware address; this number may be represented as an integer or a hexadecimal string
int|null $clockSeq 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
Return value
string A binary string
3 methods override TimeGeneratorInterface::generate()
- DefaultTimeGenerator::generate in vendor/
ramsey/ uuid/ src/ Generator/ DefaultTimeGenerator.php - @inheritDoc
- PeclUuidTimeGenerator::generate in vendor/
ramsey/ uuid/ src/ Generator/ PeclUuidTimeGenerator.php - @inheritDoc
- UnixTimeGenerator::generate in vendor/
ramsey/ uuid/ src/ Generator/ UnixTimeGenerator.php - @inheritDoc
File
-
vendor/
ramsey/ uuid/ src/ Generator/ TimeGeneratorInterface.php, line 37
Class
- TimeGeneratorInterface
- A time generator generates strings of binary data based on a node ID, clock sequence, and the current time
Namespace
Ramsey\Uuid\GeneratorCode
public function generate($node = null, ?int $clockSeq = null) : string;