1212use Interop \Amqp \AmqpProducer as InteropAmqpProducer ;
1313use Interop \Amqp \AmqpQueue as InteropAmqpQueue ;
1414use Interop \Amqp \AmqpTopic as InteropAmqpTopic ;
15+ use Interop \Queue \Destination ;
1516use Interop \Queue \Exception \DeliveryDelayNotSupportedException ;
1617use Interop \Queue \Exception \Exception ;
1718use Interop \Queue \Exception \InvalidDestinationException ;
1819use Interop \Queue \Exception \InvalidMessageException ;
19- use Interop \Queue \PsrDestination ;
20- use Interop \Queue \PsrMessage ;
21- use Interop \Queue \PsrProducer ;
22- use Interop \Queue \PsrTopic ;
20+ use Interop \Queue \Message ;
21+ use Interop \Queue \Producer ;
22+ use Interop \Queue \Topic ;
2323
2424class AmqpProducer implements InteropAmqpProducer, DelayStrategyAware
2525{
@@ -60,9 +60,9 @@ public function __construct(Channel $channel, AmqpContext $context)
6060 * @param InteropAmqpTopic|InteropAmqpQueue $destination
6161 * @param InteropAmqpMessage $message
6262 */
63- public function send (PsrDestination $ destination , PsrMessage $ message ): void
63+ public function send (Destination $ destination , Message $ message ): void
6464 {
65- $ destination instanceof PsrTopic
65+ $ destination instanceof Topic
6666 ? InvalidDestinationException ::assertDestinationInstanceOf ($ destination , InteropAmqpTopic::class)
6767 : InvalidDestinationException ::assertDestinationInstanceOf ($ destination , InteropAmqpQueue::class)
6868 ;
@@ -79,7 +79,7 @@ public function send(PsrDestination $destination, PsrMessage $message): void
7979 /**
8080 * @return self
8181 */
82- public function setDeliveryDelay (int $ deliveryDelay = null ): PsrProducer
82+ public function setDeliveryDelay (int $ deliveryDelay = null ): Producer
8383 {
8484 if (null === $ this ->delayStrategy ) {
8585 throw DeliveryDelayNotSupportedException ::providerDoestNotSupportIt ();
@@ -98,7 +98,7 @@ public function getDeliveryDelay(): ?int
9898 /**
9999 * @return self
100100 */
101- public function setPriority (int $ priority = null ): PsrProducer
101+ public function setPriority (int $ priority = null ): Producer
102102 {
103103 $ this ->priority = $ priority ;
104104
@@ -113,7 +113,7 @@ public function getPriority(): ?int
113113 /**
114114 * @return self
115115 */
116- public function setTimeToLive (int $ timeToLive = null ): PsrProducer
116+ public function setTimeToLive (int $ timeToLive = null ): Producer
117117 {
118118 $ this ->timeToLive = $ timeToLive ;
119119
0 commit comments