Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. PeclUuidTimeGenerator.php

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\Generator
View 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
RSS feed
Powered by Drupal