ReaderInterface.php 475 B

123456789101112131415161718192021
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\MessageQueue\Lock;
  7. /**
  8. * Message lock reader interface
  9. */
  10. interface ReaderInterface
  11. {
  12. /**
  13. * Get lock from storage
  14. *
  15. * @param \Magento\Framework\MessageQueue\LockInterface $lock
  16. * @param string $code
  17. * @return void
  18. */
  19. public function read(\Magento\Framework\MessageQueue\LockInterface $lock, $code);
  20. }