NodeProviderInterface.php 652 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /**
  3. * This file is part of the ramsey/uuid library
  4. *
  5. * For the full copyright and license information, please view the LICENSE
  6. * file that was distributed with this source code.
  7. *
  8. * @copyright Copyright (c) Ben Ramsey <ben@benramsey.com>
  9. * @license http://opensource.org/licenses/MIT MIT
  10. */
  11. declare(strict_types=1);
  12. namespace Ramsey\Uuid\Provider;
  13. use Ramsey\Uuid\Type\Hexadecimal;
  14. /**
  15. * A node provider retrieves or generates a node ID
  16. */
  17. interface NodeProviderInterface
  18. {
  19. /**
  20. * Returns a node ID
  21. *
  22. * @return Hexadecimal The node ID as a hexadecimal string
  23. */
  24. public function getNode(): Hexadecimal;
  25. }