12
12
use Interop \Amqp \AmqpProducer as InteropAmqpProducer ;
13
13
use Interop \Amqp \AmqpQueue as InteropAmqpQueue ;
14
14
use Interop \Amqp \AmqpTopic as InteropAmqpTopic ;
15
+ use Interop \Queue \Destination ;
15
16
use Interop \Queue \Exception \DeliveryDelayNotSupportedException ;
16
17
use Interop \Queue \Exception \Exception ;
17
18
use Interop \Queue \Exception \InvalidDestinationException ;
18
19
use 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 ;
23
23
24
24
class AmqpProducer implements InteropAmqpProducer, DelayStrategyAware
25
25
{
@@ -60,9 +60,9 @@ public function __construct(Channel $channel, AmqpContext $context)
60
60
* @param InteropAmqpTopic|InteropAmqpQueue $destination
61
61
* @param InteropAmqpMessage $message
62
62
*/
63
- public function send (PsrDestination $ destination , PsrMessage $ message ): void
63
+ public function send (Destination $ destination , Message $ message ): void
64
64
{
65
- $ destination instanceof PsrTopic
65
+ $ destination instanceof Topic
66
66
? InvalidDestinationException::assertDestinationInstanceOf ($ destination , InteropAmqpTopic::class)
67
67
: InvalidDestinationException::assertDestinationInstanceOf ($ destination , InteropAmqpQueue::class)
68
68
;
@@ -79,7 +79,7 @@ public function send(PsrDestination $destination, PsrMessage $message): void
79
79
/**
80
80
* @return self
81
81
*/
82
- public function setDeliveryDelay (int $ deliveryDelay = null ): PsrProducer
82
+ public function setDeliveryDelay (int $ deliveryDelay = null ): Producer
83
83
{
84
84
if (null === $ this ->delayStrategy ) {
85
85
throw DeliveryDelayNotSupportedException::providerDoestNotSupportIt ();
@@ -98,7 +98,7 @@ public function getDeliveryDelay(): ?int
98
98
/**
99
99
* @return self
100
100
*/
101
- public function setPriority (int $ priority = null ): PsrProducer
101
+ public function setPriority (int $ priority = null ): Producer
102
102
{
103
103
$ this ->priority = $ priority ;
104
104
@@ -113,7 +113,7 @@ public function getPriority(): ?int
113
113
/**
114
114
* @return self
115
115
*/
116
- public function setTimeToLive (int $ timeToLive = null ): PsrProducer
116
+ public function setTimeToLive (int $ timeToLive = null ): Producer
117
117
{
118
118
$ this ->timeToLive = $ timeToLive ;
119
119
0 commit comments