| @@ 51-59 (lines=9) @@ | ||
| 48 | $this->translate = $translator; |
|
| 49 | } |
|
| 50 | ||
| 51 | public function ack(FrameChannel $channel, Ack $command): Frame |
|
| 52 | { |
|
| 53 | return Frame::command( |
|
| 54 | $channel, |
|
| 55 | Methods::get('basic.ack'), |
|
| 56 | new UnsignedLongLongInteger(new Integer($command->deliveryTag())), |
|
| 57 | new Bits($command->isMultiple()) |
|
| 58 | ); |
|
| 59 | } |
|
| 60 | ||
| 61 | public function cancel(FrameChannel $channel, Cancel $command): Frame |
|
| 62 | { |
|
| @@ 170-178 (lines=9) @@ | ||
| 167 | ); |
|
| 168 | } |
|
| 169 | ||
| 170 | public function reject(FrameChannel $channel, Reject $command): Frame |
|
| 171 | { |
|
| 172 | return Frame::command( |
|
| 173 | $channel, |
|
| 174 | Methods::get('basic.reject'), |
|
| 175 | new UnsignedLongLongInteger(new Integer($command->deliveryTag())), |
|
| 176 | new Bits($command->shouldRequeue()) |
|
| 177 | ); |
|
| 178 | } |
|
| 179 | ||
| 180 | private function arguments(MapInterface $arguments): Table |
|
| 181 | { |
|