| @@ 80-93 (lines=14) @@ | ||
| 77 | ); |
|
| 78 | } |
|
| 79 | ||
| 80 | public function bind(FrameChannel $channel, Binding $command): Frame |
|
| 81 | { |
|
| 82 | return new Frame( |
|
| 83 | Type::method(), |
|
| 84 | $channel, |
|
| 85 | Methods::get('queue.bind'), |
|
| 86 | new UnsignedShortInteger(new Integer(0)), //ticket (reserved) |
|
| 87 | new ShortString(new Str($command->queue())), |
|
| 88 | new ShortString(new Str($command->exchange())), |
|
| 89 | new ShortString(new Str($command->routingKey())), |
|
| 90 | new Bits(!$command->shouldWait()), |
|
| 91 | $this->translate($command->arguments()) |
|
| 92 | ); |
|
| 93 | } |
|
| 94 | ||
| 95 | public function unbind(FrameChannel $channel, Unbinding $command): Frame |
|
| 96 | { |
|
| @@ 95-107 (lines=13) @@ | ||
| 92 | ); |
|
| 93 | } |
|
| 94 | ||
| 95 | public function unbind(FrameChannel $channel, Unbinding $command): Frame |
|
| 96 | { |
|
| 97 | return new Frame( |
|
| 98 | Type::method(), |
|
| 99 | $channel, |
|
| 100 | Methods::get('queue.unbind'), |
|
| 101 | new UnsignedShortInteger(new Integer(0)), //ticket (reserved) |
|
| 102 | new ShortString(new Str($command->queue())), |
|
| 103 | new ShortString(new Str($command->exchange())), |
|
| 104 | new ShortString(new Str($command->routingKey())), |
|
| 105 | $this->translate($command->arguments()) |
|
| 106 | ); |
|
| 107 | } |
|
| 108 | ||
| 109 | public function purge(FrameChannel $channel, Purge $command): Frame |
|
| 110 | { |
|