Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
ExchangeConfigItem.php
Go to the documentation of this file.
1 <?php
7 
10 
15 {
21  private $name;
22 
28  private $type;
29 
35  private $connection;
36 
42  private $bindings;
43 
49  private $arguments;
50 
56  private $isDurable;
57 
63  private $isAutoDelete;
64 
70  private $isInternal;
71 
77  public function __construct(IteratorFactory $iteratorFactory)
78  {
79  $this->bindings = $iteratorFactory->create();
80  }
81 
85  public function getName()
86  {
87  return $this->name;
88  }
89 
93  public function getType()
94  {
95  return $this->type;
96  }
97 
101  public function getConnection()
102  {
103  return $this->connection;
104  }
105 
109  public function isDurable()
110  {
111  return $this->isDurable;
112  }
113 
117  public function isAutoDelete()
118  {
119  return $this->isAutoDelete;
120  }
121 
125  public function isInternal()
126  {
127  return $this->isInternal;
128  }
129 
133  public function getBindings()
134  {
135  return $this->bindings;
136  }
137 
141  public function getArguments()
142  {
143  return $this->arguments;
144  }
145 
152  public function setData(array $data)
153  {
154  $this->name = $data['name'];
155  $this->type = $data['type'];
156  $this->connection = $data['connection'];
157  $this->isInternal = $data['internal'];
158  $this->isDurable = $data['durable'];
159  $this->isAutoDelete = $data['autoDelete'];
160  $this->arguments = $data['arguments'];
161  $this->bindings->setData($data['bindings']);
162  }
163 }