SyncHandler.php 682 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\TestModuleMessageQueueConfiguration;
  7. /**
  8. * Class for testing synchronous queue handlers.
  9. */
  10. class SyncHandler
  11. {
  12. /**
  13. * @param string
  14. * @return string
  15. */
  16. public function methodWithStringParam($param)
  17. {
  18. return 'Processed: ' . $param;
  19. }
  20. /**
  21. * @param bool
  22. * @return bool
  23. */
  24. public function methodWithBoolParam($param)
  25. {
  26. return !$param;
  27. }
  28. /**
  29. * @param mixed
  30. * @return mixed
  31. */
  32. public function methodWithMixedParam($param)
  33. {
  34. return $param;
  35. }
  36. }