WildCardHandler.php 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\TestModuleAsyncAmqp\Model;
  7. class WildCardHandler
  8. {
  9. /**
  10. * @param AsyncTestData $simpleDataItem
  11. */
  12. public function methodOne(AsyncTestData $simpleDataItem)
  13. {
  14. file_put_contents(
  15. $simpleDataItem->getTextFilePath(),
  16. 'WildCardHandler::methodOne - wildcard.queue.one - ' . $simpleDataItem->getValue() . PHP_EOL,
  17. FILE_APPEND
  18. );
  19. }
  20. /**
  21. * @param AsyncTestData $simpleDataItem
  22. */
  23. public function methodTwo(AsyncTestData $simpleDataItem)
  24. {
  25. file_put_contents(
  26. $simpleDataItem->getTextFilePath(),
  27. 'WildCardHandler::methodTwo - wildcard.queue.two - ' . $simpleDataItem->getValue() . PHP_EOL,
  28. FILE_APPEND
  29. );
  30. }
  31. /**
  32. * @param AsyncTestData $simpleDataItem
  33. */
  34. public function methodThree(AsyncTestData $simpleDataItem)
  35. {
  36. file_put_contents(
  37. $simpleDataItem->getTextFilePath(),
  38. 'WildCardHandler::methodThree - wildcard.queue.three - ' . $simpleDataItem->getValue() . PHP_EOL,
  39. FILE_APPEND
  40. );
  41. }
  42. /**
  43. * @param AsyncTestData $simpleDataItem
  44. */
  45. public function methodFour(AsyncTestData $simpleDataItem)
  46. {
  47. file_put_contents(
  48. $simpleDataItem->getTextFilePath(),
  49. 'WildCardHandler::methodFour - wildcard.queue.four - ' . $simpleDataItem->getValue() . PHP_EOL,
  50. FILE_APPEND
  51. );
  52. }
  53. }