IdentityGeneratorInterface.php 473 B

123456789101112131415161718192021222324252627
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\DataObject;
  7. /**
  8. * Interface UuidInterface
  9. */
  10. interface IdentityGeneratorInterface
  11. {
  12. /**
  13. * Generate id
  14. *
  15. * @return string
  16. **/
  17. public function generateId();
  18. /**
  19. * Generate id for data
  20. *
  21. * @param string $data
  22. * @return string
  23. **/
  24. public function generateIdForData($data);
  25. }