1 | <?php |
||
11 | class Publisher implements QueueProducerInterface |
||
12 | { |
||
13 | private $connectionManager; |
||
14 | private $fromName; |
||
15 | private $queueName; |
||
16 | private $exchange; |
||
17 | private $exchangeType; |
||
18 | |||
19 | public function __construct( |
||
32 | |||
33 | /** |
||
34 | * @param $data |
||
35 | * @param $expire |
||
36 | * @param $priority |
||
37 | */ |
||
38 | public function publish($data, $expire = self::DEFAULT_TTL, $priority = self::PRIORITY_LOW) |
||
52 | |||
53 | /** |
||
54 | * @return string |
||
55 | */ |
||
56 | public function getQueueName() |
||
60 | |||
61 | /** |
||
62 | * Return caller name. |
||
63 | * |
||
64 | * @return string |
||
65 | */ |
||
66 | public function getFromName() |
||
70 | |||
71 | /** |
||
72 | * @return string |
||
73 | */ |
||
74 | public function getExchange() |
||
78 | |||
79 | /** |
||
80 | * @return string |
||
81 | */ |
||
82 | public function getExchangeType() |
||
86 | } |
||
87 |