* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Uid; /** * A v4 UUID contains a 122-bit random number. * * @experimental in 5.1 * * @author Grégoire Pineau */ class UuidV4 extends Uuid { protected const TYPE = UUID_TYPE_RANDOM; public function __construct(string $uuid = null) { if (null === $uuid) { $this->uuid = uuid_create(static::TYPE); } else { parent::__construct($uuid); } } }