1 | <?php |
||
8 | class Binding implements RabbitMqObjectInterface{ |
||
9 | |||
10 | /** |
||
11 | * |
||
12 | * @var Exchange |
||
13 | */ |
||
14 | private $source; |
||
15 | |||
16 | /** |
||
17 | * Routing key |
||
18 | * @var string |
||
19 | */ |
||
20 | private $routing_key = ''; |
||
21 | |||
22 | /** |
||
23 | * No wait |
||
24 | * @var bool |
||
25 | */ |
||
26 | private $nowait = false; |
||
27 | |||
28 | /** |
||
29 | * Arguments |
||
30 | * @var array |
||
31 | */ |
||
32 | private $arguments = null; |
||
33 | |||
34 | /** |
||
35 | * Ticket |
||
36 | * @var int |
||
37 | */ |
||
38 | private $ticket = 0; |
||
39 | |||
40 | /** |
||
41 | * |
||
42 | * @var Queue |
||
43 | */ |
||
44 | private $to; |
||
45 | |||
46 | /** |
||
47 | * Parameter to initialize object only one time |
||
48 | * @var bool |
||
49 | */ |
||
50 | private $init = false; |
||
51 | |||
52 | /** |
||
53 | * Set the source (Exchange) to the destination (Queue) |
||
54 | * @param Exchange $source |
||
55 | * @param Queue $to |
||
56 | */ |
||
57 | public function __contruct(Exchange $source, Queue $to) { |
||
61 | |||
62 | public function init(AMQPChannel $amqpChannel) { |
||
77 | |||
78 | /** |
||
79 | * Get Routing key |
||
80 | * @return string |
||
81 | */ |
||
82 | public function getRoutingKey() { |
||
85 | |||
86 | /** |
||
87 | * Set routing key |
||
88 | * @param string $routing_key |
||
89 | * @return Binding |
||
90 | */ |
||
91 | public function setRoutingKey($routing_key) { |
||
95 | |||
96 | /** |
||
97 | * Get nowait |
||
98 | * @return bool |
||
99 | */ |
||
100 | public function getNowait() { |
||
103 | |||
104 | /** |
||
105 | * Set nowait |
||
106 | * @param bool $nowait |
||
107 | * @return Binding |
||
108 | */ |
||
109 | public function setNowait($nowait) { |
||
113 | |||
114 | /** |
||
115 | * Get arguments |
||
116 | * @return array |
||
117 | */ |
||
118 | public function getArguments() { |
||
121 | |||
122 | /** |
||
123 | * Set arguments |
||
124 | * @param bool $arguments |
||
125 | * @return Binding |
||
126 | */ |
||
127 | public function setArguments(array $arguments) { |
||
131 | |||
132 | /** |
||
133 | * Get ticket |
||
134 | * @return int |
||
135 | */ |
||
136 | public function getTicket() { |
||
139 | |||
140 | /** |
||
141 | * Set ticket |
||
142 | * @param int $ticket |
||
143 | * @return Binding |
||
144 | */ |
||
145 | public function setTicket($ticket) { |
||
149 | |||
150 | } |
This check looks for function calls that miss required arguments.