UuidV3.php 592 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Symfony\Component\Uid;
  11. /**
  12. * A v3 UUID contains an MD5 hash of another UUID and a name.
  13. *
  14. * Use Uuid::v3() to compute one.
  15. *
  16. * @author Grégoire Pineau <lyrixx@lyrixx.info>
  17. */
  18. class UuidV3 extends Uuid
  19. {
  20. protected const TYPE = 3;
  21. public function __construct(string $uuid)
  22. {
  23. parent::__construct($uuid, true);
  24. }
  25. }