Mercurial > hg > isophonics-drupal-site
annotate 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 |
rev | line source |
---|---|
Chris@0 | 1 <?php |
Chris@0 | 2 |
Chris@0 | 3 namespace Drupal\Component\Uuid; |
Chris@0 | 4 |
Chris@0 | 5 /** |
Chris@0 | 6 * Generates a UUID using the PECL extension. |
Chris@0 | 7 */ |
Chris@0 | 8 class Pecl implements UuidInterface { |
Chris@0 | 9 |
Chris@0 | 10 /** |
Chris@0 | 11 * {@inheritdoc} |
Chris@0 | 12 */ |
Chris@0 | 13 public function generate() { |
Chris@0 | 14 return uuid_create(UUID_TYPE_DEFAULT); |
Chris@0 | 15 } |
Chris@0 | 16 |
Chris@0 | 17 } |