![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/old/vendor/magento/framework-message-queue/Topology/Config/ |
<?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']; } }