class PeclUuidTimeGenerator
PeclUuidTimeGenerator generates strings of binary data for time-base UUIDs, using ext-uuid
@link https://pecl.php.net/package/uuid ext-uuid
Hierarchy
- class \Ramsey\Uuid\Generator\PeclUuidTimeGenerator implements \Ramsey\Uuid\Generator\TimeGeneratorInterface
Expanded class hierarchy of PeclUuidTimeGenerator
1 file declares its use of PeclUuidTimeGenerator
- FeatureSet.php in vendor/
ramsey/ uuid/ src/ FeatureSet.php
File
-
vendor/
ramsey/ uuid/ src/ Generator/ PeclUuidTimeGenerator.php, line 28
Namespace
Ramsey\Uuid\GeneratorView source
class PeclUuidTimeGenerator implements TimeGeneratorInterface {
/**
* @inheritDoc
*/
public function generate($node = null, ?int $clockSeq = null) : string {
$uuid = uuid_create(UUID_TYPE_TIME);
return uuid_parse($uuid);
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title |
---|---|---|---|---|
PeclUuidTimeGenerator::generate | public | function | @inheritDoc | Overrides TimeGeneratorInterface::generate |