Debian Codegraph @

vendor/ramsey/uuid/src/Generator/NameGeneratorFactory.php

raw
1 <?php
2
3 /**
4 * This file is part of the ramsey/uuid library
5 *
6 * For the full copyright and license information, please view the LICENSE
7 * file that was distributed with this source code.
8 *
9 * @copyright Copyright (c) Ben Ramsey <[email protected]>
10 * @license http://opensource.org/licenses/MIT MIT
11 */
12
13 declare(strict_types=1);
14
15 namespace Ramsey\Uuid\Generator;
16
17 /**
18 * NameGeneratorFactory retrieves a default name generator, based on the environment
19 */
20 class NameGeneratorFactory
21 {
22 /**
23 * Returns a default name generator, based on the current environment
24 */
25 public function getGenerator(): NameGeneratorInterface
26 {
27 return new DefaultNameGenerator();
28 }
29 }