2
2
3
3
namespace Enqueue \AmqpExt ;
4
4
5
- use Interop \Amqp \AmqpConsumer ;
6
- use Interop \Amqp \AmqpDestination ;
7
- use Interop \Amqp \AmqpMessage ;
8
- use Interop \Amqp \AmqpQueue ;
9
- use Interop \Amqp \AmqpTopic ;
5
+ use Interop \Amqp \AmqpConsumer as InteropAmqpConsumer ;
6
+ use Interop \Amqp \AmqpDestination as InteropAmqpDestination ;
7
+ use Interop \Amqp \AmqpMessage as InteropAmqpMessage ;
8
+ use Interop \Amqp \AmqpQueue as InteropAmqpQueue ;
9
+ use Interop \Amqp \AmqpTopic as InteropAmqpTopic ;
10
10
11
11
class Flags
12
12
{
@@ -19,11 +19,11 @@ public static function convertMessageFlags($interop)
19
19
{
20
20
$ flags = AMQP_NOPARAM ;
21
21
22
- if ($ interop & AmqpMessage ::FLAG_MANDATORY ) {
22
+ if ($ interop & InteropAmqpMessage ::FLAG_MANDATORY ) {
23
23
$ flags |= AMQP_MANDATORY ;
24
24
}
25
25
26
- if ($ interop & AmqpMessage ::FLAG_IMMEDIATE ) {
26
+ if ($ interop & InteropAmqpMessage ::FLAG_IMMEDIATE ) {
27
27
$ flags |= AMQP_IMMEDIATE ;
28
28
}
29
29
@@ -41,7 +41,7 @@ public static function convertTopicFlags($interop)
41
41
42
42
$ flags |= static ::convertDestinationFlags ($ interop );
43
43
44
- if ($ interop & AmqpTopic ::FLAG_INTERNAL ) {
44
+ if ($ interop & InteropAmqpTopic ::FLAG_INTERNAL ) {
45
45
$ flags |= AMQP_INTERNAL ;
46
46
}
47
47
@@ -59,7 +59,7 @@ public static function convertQueueFlags($interop)
59
59
60
60
$ flags |= static ::convertDestinationFlags ($ interop );
61
61
62
- if ($ interop & AmqpQueue ::FLAG_EXCLUSIVE ) {
62
+ if ($ interop & InteropAmqpQueue ::FLAG_EXCLUSIVE ) {
63
63
$ flags |= AMQP_EXCLUSIVE ;
64
64
}
65
65
@@ -75,19 +75,19 @@ public static function convertDestinationFlags($interop)
75
75
{
76
76
$ flags = AMQP_NOPARAM ;
77
77
78
- if ($ interop & AmqpDestination ::FLAG_PASSIVE ) {
78
+ if ($ interop & InteropAmqpDestination ::FLAG_PASSIVE ) {
79
79
$ flags |= AMQP_PASSIVE ;
80
80
}
81
81
82
- if ($ interop & AmqpDestination ::FLAG_DURABLE ) {
82
+ if ($ interop & InteropAmqpDestination ::FLAG_DURABLE ) {
83
83
$ flags |= AMQP_DURABLE ;
84
84
}
85
85
86
- if ($ interop & AmqpDestination ::FLAG_AUTODELETE ) {
86
+ if ($ interop & InteropAmqpDestination ::FLAG_AUTODELETE ) {
87
87
$ flags |= AMQP_AUTODELETE ;
88
88
}
89
89
90
- if ($ interop & AmqpDestination ::FLAG_NOWAIT ) {
90
+ if ($ interop & InteropAmqpDestination ::FLAG_NOWAIT ) {
91
91
$ flags |= AMQP_NOWAIT ;
92
92
}
93
93
@@ -103,19 +103,19 @@ public static function convertConsumerFlags($interop)
103
103
{
104
104
$ flags = AMQP_NOPARAM ;
105
105
106
- if ($ interop & AmqpConsumer ::FLAG_NOLOCAL ) {
106
+ if ($ interop & InteropAmqpConsumer ::FLAG_NOLOCAL ) {
107
107
$ flags |= AMQP_NOLOCAL ;
108
108
}
109
109
110
- if ($ interop & AmqpConsumer ::FLAG_NOACK ) {
110
+ if ($ interop & InteropAmqpConsumer ::FLAG_NOACK ) {
111
111
$ flags |= AMQP_AUTOACK ;
112
112
}
113
113
114
- if ($ interop & AmqpConsumer ::FLAG_EXCLUSIVE ) {
114
+ if ($ interop & InteropAmqpConsumer ::FLAG_EXCLUSIVE ) {
115
115
$ flags |= AMQP_EXCLUSIVE ;
116
116
}
117
117
118
- if ($ interop & AmqpConsumer ::FLAG_NOWAIT ) {
118
+ if ($ interop & InteropAmqpConsumer ::FLAG_NOWAIT ) {
119
119
$ flags |= AMQP_NOWAIT ;
120
120
}
121
121
0 commit comments