123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117 |
- <?php
- /**
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- namespace Magento\Framework\MessageQueue\Topology\Config\ExchangeConfigItem;
- /**
- * Instances of this class represent config binding items declared in etc/queue_topology.xsd
- */
- class Binding implements BindingInterface
- {
- /**
- * Binding id.
- *
- * @var string
- */
- private $id;
- /**
- * Binding destination type.
- *
- * @var string
- */
- private $destinationType;
- /**
- * Binding destination.
- *
- * @var string
- */
- private $destination;
- /**
- * Flag. Is binding disabled.
- * @var bool
- */
- private $isDisabled;
- /**
- * Topic name.
- *
- * @var string
- */
- private $topic;
- /**
- * Binding arguments.
- *
- * @var array
- */
- private $arguments;
- /**
- * {@inheritdoc}
- */
- public function getId()
- {
- return $this->id;
- }
- /**
- * {@inheritdoc}
- */
- public function getDestinationType()
- {
- return $this->destinationType;
- }
- /**
- * {@inheritdoc}
- */
- public function getDestination()
- {
- return $this->destination;
- }
- /**
- * {@inheritdoc}
- */
- public function isDisabled()
- {
- return $this->isDisabled;
- }
- /**
- * {@inheritdoc}
- */
- public function getTopic()
- {
- return $this->topic;
- }
- /**
- * {@inheritdoc}
- */
- public function getArguments()
- {
- return $this->arguments;
- }
- /**
- * Set binding data.
- *
- * @param array $data
- * @return void
- */
- public function setData(array $data)
- {
- $this->id = $data['id'];
- $this->destinationType = $data['destinationType'];
- $this->destination = $data['destination'];
- $this->arguments = $data['arguments'];
- $this->topic = $data['topic'];
- $this->isDisabled = $data['disabled'];
- }
- }
|