BindingInterface.php 977 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\MessageQueue\Topology\Config\ExchangeConfigItem;
  7. /**
  8. * Instances of this interface represent config binging items declared in etc/queue_topology.xsd
  9. */
  10. interface BindingInterface
  11. {
  12. /**
  13. * Get binding name.
  14. *
  15. * @return string
  16. */
  17. public function getId();
  18. /**
  19. * Get binding destination type.
  20. *
  21. * @return string
  22. */
  23. public function getDestinationType();
  24. /**
  25. * Get destination.
  26. *
  27. * @return string
  28. */
  29. public function getDestination();
  30. /**
  31. * Check if binding is disabled.
  32. *
  33. * @return bool
  34. */
  35. public function isDisabled();
  36. /**
  37. * Get topic name.
  38. *
  39. * @return string
  40. */
  41. public function getTopic();
  42. /**
  43. * Get binding arguments
  44. *
  45. * @return array
  46. */
  47. public function getArguments();
  48. }