123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102 |
- <?php
- /**
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- namespace Magento\Framework\MessageQueue\Topology\Config;
- /**
- * Instances of this class represent queue config items.
- */
- class QueueConfigItem implements QueueConfigItemInterface
- {
- /**
- * Queue name.
- *
- * @var string
- */
- private $name;
- /**
- * Connection name.
- *
- * @var string
- */
- private $connection;
- /**
- * Queue arguments.
- *
- * @var array
- */
- private $arguments;
- /**
- * Flag. Is queue durable.
- *
- * @var bool
- */
- private $isDurable;
- /**
- * Flag. Is auto-delete
- *
- * @var bool
- */
- private $isAutoDelete;
- /**
- * {@inheritdoc}
- */
- public function getName()
- {
- return $this->name;
- }
- /**
- * {@inheritdoc}
- */
- public function getConnection()
- {
- return $this->connection;
- }
- /**
- * {@inheritdoc}
- */
- public function getArguments()
- {
- return $this->arguments;
- }
- /**
- * {@inheritdoc}
- */
- public function isDurable()
- {
- return $this->isDurable;
- }
- /**
- * {@inheritdoc}
- */
- public function isAutoDelete()
- {
- return $this->isAutoDelete;
- }
- /**
- * Set exchange config item data.
- *
- * @param array $data
- * @return void
- */
- public function setData(array $data)
- {
- $this->name = $data['name'];
- $this->connection = $data['connection'];
- $this->isDurable = $data['durable'];
- $this->isAutoDelete = $data['autoDelete'];
- $this->arguments = $data['arguments'];
- }
- }
|