Com.php 387 Bytes
Newer Older
1 2 3 4 5
<?php

namespace Drupal\Component\Uuid;

/**
6
 * Generates a UUID using the Windows internal GUID extension.
7 8 9 10
 *
 * @see http://php.net/com_create_guid
 */
class Com implements UuidInterface {
11

12 13 14
  /**
   * {@inheritdoc}
   */
15 16
  public function generate() {
    // Remove {} wrapper and make lower case to keep result consistent.
17
    return strtolower(trim(com_create_guid(), '{}'));
18
  }
19

20
}