1 | <?php |
||
10 | class Exchange |
||
11 | { |
||
12 | private $name; |
||
13 | private $channel; |
||
14 | private $type = "direct"; |
||
15 | private $passive = false; |
||
16 | private $durable = false; |
||
17 | private $auto_delete = true; |
||
18 | |||
19 | public function __construct($name, AMQPChannel $channel, $options) |
||
38 | |||
39 | public function getName() |
||
43 | |||
44 | public function getChannel() |
||
48 | |||
49 | public function getType() |
||
53 | |||
54 | public function isPassive() |
||
58 | |||
59 | public function isDurable() |
||
63 | |||
64 | public function isAutoDelete() |
||
68 | |||
69 | public function send($message, $routing_key = "", $mandatory = false, $immediate = false, $ticket = null) |
||
74 | } |
||
75 |
Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a
@return
annotation as described here.