44
55namespace Enqueue \Null ;
66
7- use Interop \Queue \PsrConsumer ;
8- use Interop \Queue \PsrContext ;
9- use Interop \Queue \PsrDestination ;
10- use Interop \Queue \PsrMessage ;
11- use Interop \Queue \PsrProducer ;
12- use Interop \Queue \PsrQueue ;
13- use Interop \Queue \PsrSubscriptionConsumer ;
14- use Interop \Queue \PsrTopic ;
7+ use Interop \Queue \Consumer ;
8+ use Interop \Queue \Context ;
9+ use Interop \Queue \Destination ;
10+ use Interop \Queue \Message ;
11+ use Interop \Queue \Producer ;
12+ use Interop \Queue \Queue ;
13+ use Interop \Queue \SubscriptionConsumer ;
14+ use Interop \Queue \Topic ;
1515
16- class NullContext implements PsrContext
16+ class NullContext implements Context
1717{
1818 /**
1919 * @return NullMessage
2020 */
21- public function createMessage (string $ body = '' , array $ properties = [], array $ headers = []): PsrMessage
21+ public function createMessage (string $ body = '' , array $ properties = [], array $ headers = []): Message
2222 {
2323 $ message = new NullMessage ();
2424 $ message ->setBody ($ body );
@@ -31,52 +31,52 @@ public function createMessage(string $body = '', array $properties = [], array $
3131 /**
3232 * @return NullQueue
3333 */
34- public function createQueue (string $ name ): PsrQueue
34+ public function createQueue (string $ name ): Queue
3535 {
3636 return new NullQueue ($ name );
3737 }
3838
3939 /**
4040 * @return NullQueue
4141 */
42- public function createTemporaryQueue (): PsrQueue
42+ public function createTemporaryQueue (): Queue
4343 {
4444 return $ this ->createQueue (uniqid ('' , true ));
4545 }
4646
4747 /**
4848 * @return NullTopic
4949 */
50- public function createTopic (string $ name ): PsrTopic
50+ public function createTopic (string $ name ): Topic
5151 {
5252 return new NullTopic ($ name );
5353 }
5454
5555 /**
5656 * @return NullConsumer
5757 */
58- public function createConsumer (PsrDestination $ destination ): PsrConsumer
58+ public function createConsumer (Destination $ destination ): Consumer
5959 {
6060 return new NullConsumer ($ destination );
6161 }
6262
6363 /**
6464 * @return NullProducer
6565 */
66- public function createProducer (): PsrProducer
66+ public function createProducer (): Producer
6767 {
6868 return new NullProducer ();
6969 }
7070
7171 /**
7272 * @return NullSubscriptionConsumer
7373 */
74- public function createSubscriptionConsumer (): PsrSubscriptionConsumer
74+ public function createSubscriptionConsumer (): SubscriptionConsumer
7575 {
7676 return new NullSubscriptionConsumer ();
7777 }
7878
79- public function purgeQueue (PsrQueue $ queue ): void
79+ public function purgeQueue (Queue $ queue ): void
8080 {
8181 }
8282
0 commit comments