/
githubmirror
/
symfony
Обзор
Документация
Войти
/
githubmirror
/
symfony
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
8.2
src/Symfony/Component/Uid/Factory/RandomBasedUuidFactory.php
32 строки
587 B
Oskar Stark
[Uid] Use CPP
02 янв 2024, 12:32
02 янв 2024, 12:32
a050bde
Код
Авторство
О чём код?
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Uid\Factory; use Symfony\Component\Uid\UuidV4; class RandomBasedUuidFactory { /** * @param class-string $class */ public function __construct( private string $class, ) { } public function create(): UuidV4 { $class = $this->class; return new $class(); } }