Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
PublisherConfigItem.php
Go to the documentation of this file.
1 <?php
7 
12 {
18  private $topic;
19 
25  private $connection;
26 
32  private $isDisabled;
33 
39  public function __construct(PublisherConnectionFactory $connectionFactory)
40  {
41  $this->connection = $connectionFactory->create();
42  }
43 
47  public function getTopic()
48  {
49  return $this->topic;
50  }
51 
55  public function isDisabled()
56  {
57  return $this->isDisabled;
58  }
59 
63  public function getConnection()
64  {
65  return $this->connection;
66  }
67 
74  public function setData(array $data)
75  {
76  $this->topic = $data['topic'];
77  $this->isDisabled = $data['disabled'];
78  $this->connection->setData($data['connection']);
79  }
80 }
__construct(PublisherConnectionFactory $connectionFactory)