Handler.php 754 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\MessageQueue\Consumer\Config\ConsumerConfigItem;
  7. /**
  8. * {@inheritdoc}
  9. */
  10. class Handler implements HandlerInterface
  11. {
  12. /**
  13. * @var string
  14. */
  15. private $type;
  16. /**
  17. * @var string
  18. */
  19. private $method;
  20. /**
  21. * {@inheritdoc}
  22. */
  23. public function getType()
  24. {
  25. return $this->type;
  26. }
  27. /**
  28. * {@inheritdoc}
  29. */
  30. public function getMethod()
  31. {
  32. return $this->method;
  33. }
  34. /**
  35. * {@inheritdoc}
  36. */
  37. public function setData(array $data)
  38. {
  39. $this->type = $data['type'];
  40. $this->method = $data['method'];
  41. }
  42. }