setAutoDelete(true); } /** * 消费队列消息 * * @param $data * @param AMQPMessage $message * @return string */ public function consumeMessage($data, AMQPMessage $message): string { echo $data; echo PHP_EOL; return Result::ACK; } public function isEnable(): bool { return true; // TODO: Change the autogenerated stub } }