SequenceResolver.php 411 B

1234567891011121314151617181920212223
  1. <?php
  2. /*
  3. * This file is part of the godruoyi/php-snowflake.
  4. *
  5. * (c) Godruoyi <g@godruoyi.com>
  6. *
  7. * This source file is subject to the MIT license that is bundled.
  8. */
  9. namespace Godruoyi\Snowflake;
  10. interface SequenceResolver
  11. {
  12. /**
  13. * The snowflake.
  14. *
  15. * @param int|string $currentTime current request ms
  16. *
  17. * @return int
  18. */
  19. public function sequence(int $currentTime);
  20. }