comparison core/lib/Drupal/Component/Uuid/Pecl.php @ 0:4c8ae668cc8c

Initial import (non-working)
author Chris Cannam
date Wed, 29 Nov 2017 16:09:58 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:4c8ae668cc8c
1 <?php
2
3 namespace Drupal\Component\Uuid;
4
5 /**
6 * Generates a UUID using the PECL extension.
7 */
8 class Pecl implements UuidInterface {
9
10 /**
11 * {@inheritdoc}
12 */
13 public function generate() {
14 return uuid_create(UUID_TYPE_DEFAULT);
15 }
16
17 }