diff --git a/src/AmqpQueue.php b/src/AmqpQueue.php index dd98fb4..0772a18 100644 --- a/src/AmqpQueue.php +++ b/src/AmqpQueue.php @@ -29,4 +29,6 @@ public function getArgument(string $key); public function getConsumerTag(): ?string; public function setConsumerTag(?string $consumerTag = null): void; + + public function setQueueName(string $queueName): void; } diff --git a/src/Impl/AmqpQueue.php b/src/Impl/AmqpQueue.php index d0c8048..6f5b526 100644 --- a/src/Impl/AmqpQueue.php +++ b/src/Impl/AmqpQueue.php @@ -40,6 +40,11 @@ public function getQueueName(): string return $this->name; } + public function setQueueName(?string $queueName): void + { + $this->name = $queueName; + } + public function getConsumerTag(): ?string { return $this->consumerTag;