1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace TreeHouse\Queue\Amqp\Driver\Amqp; |
4
|
|
|
|
5
|
|
|
use TreeHouse\Queue\Amqp\EnvelopeInterface; |
6
|
|
|
|
7
|
|
|
class Envelope implements EnvelopeInterface |
8
|
|
|
{ |
9
|
|
|
/** |
10
|
|
|
* @var \AMQPEnvelope |
11
|
|
|
*/ |
12
|
|
|
protected $delegate; |
13
|
|
|
|
14
|
|
|
/** |
15
|
|
|
* @param \AMQPEnvelope $envelope |
16
|
|
|
*/ |
17
|
1 |
|
public function __construct(\AMQPEnvelope $envelope) |
18
|
|
|
{ |
19
|
1 |
|
$this->delegate = $envelope; |
20
|
1 |
|
} |
21
|
|
|
|
22
|
|
|
/** |
23
|
|
|
* @inheritdoc |
24
|
|
|
*/ |
25
|
1 |
|
public function getAppId() |
26
|
|
|
{ |
27
|
1 |
|
return $this->delegate->getAppId(); |
28
|
|
|
} |
29
|
|
|
|
30
|
|
|
/** |
31
|
|
|
* @inheritdoc |
32
|
|
|
*/ |
33
|
1 |
|
public function getBody() |
34
|
|
|
{ |
35
|
1 |
|
return $this->delegate->getBody(); |
36
|
|
|
} |
37
|
|
|
|
38
|
|
|
/** |
39
|
|
|
* @inheritdoc |
40
|
|
|
*/ |
41
|
1 |
|
public function getContentEncoding() |
42
|
|
|
{ |
43
|
1 |
|
return $this->delegate->getContentEncoding(); |
44
|
|
|
} |
45
|
|
|
|
46
|
|
|
/** |
47
|
|
|
* @inheritdoc |
48
|
|
|
*/ |
49
|
1 |
|
public function getContentType() |
50
|
|
|
{ |
51
|
1 |
|
return $this->delegate->getContentType(); |
52
|
|
|
} |
53
|
|
|
|
54
|
|
|
/** |
55
|
|
|
* @inheritdoc |
56
|
|
|
*/ |
57
|
1 |
|
public function getCorrelationId() |
58
|
|
|
{ |
59
|
1 |
|
return $this->delegate->getCorrelationId(); |
60
|
|
|
} |
61
|
|
|
|
62
|
|
|
/** |
63
|
|
|
* @inheritdoc |
64
|
|
|
*/ |
65
|
1 |
|
public function getDeliveryMode() |
66
|
|
|
{ |
67
|
1 |
|
return $this->delegate->getDeliveryMode(); |
68
|
|
|
} |
69
|
|
|
|
70
|
|
|
/** |
71
|
|
|
* @inheritdoc |
72
|
|
|
*/ |
73
|
1 |
|
public function getDeliveryTag() |
74
|
|
|
{ |
75
|
1 |
|
return $this->delegate->getDeliveryTag(); |
76
|
|
|
} |
77
|
|
|
|
78
|
|
|
/** |
79
|
|
|
* @inheritdoc |
80
|
|
|
*/ |
81
|
1 |
|
public function getExchangeName() |
82
|
|
|
{ |
83
|
1 |
|
return $this->delegate->getExchangeName(); |
84
|
|
|
} |
85
|
|
|
|
86
|
|
|
/** |
87
|
|
|
* @inheritdoc |
88
|
|
|
*/ |
89
|
1 |
|
public function getExpiration() |
90
|
|
|
{ |
91
|
1 |
|
return $this->delegate->getExpiration(); |
92
|
|
|
} |
93
|
|
|
|
94
|
|
|
/** |
95
|
|
|
* @inheritdoc |
96
|
|
|
*/ |
97
|
1 |
|
public function getHeader($headerKey) |
98
|
|
|
{ |
99
|
1 |
|
return $this->delegate->getHeader($headerKey); |
100
|
|
|
} |
101
|
|
|
|
102
|
|
|
/** |
103
|
|
|
* @inheritdoc |
104
|
|
|
*/ |
105
|
1 |
|
public function getHeaders() |
106
|
|
|
{ |
107
|
1 |
|
return $this->delegate->getHeaders(); |
108
|
|
|
} |
109
|
|
|
|
110
|
|
|
/** |
111
|
|
|
* @inheritdoc |
112
|
|
|
*/ |
113
|
1 |
|
public function getMessageId() |
114
|
|
|
{ |
115
|
1 |
|
return $this->delegate->getMessageId(); |
116
|
|
|
} |
117
|
|
|
|
118
|
|
|
/** |
119
|
|
|
* @inheritdoc |
120
|
|
|
*/ |
121
|
1 |
|
public function getPriority() |
122
|
|
|
{ |
123
|
1 |
|
return $this->delegate->getPriority(); |
124
|
|
|
} |
125
|
|
|
|
126
|
|
|
/** |
127
|
|
|
* @inheritdoc |
128
|
|
|
*/ |
129
|
1 |
|
public function getReplyTo() |
130
|
|
|
{ |
131
|
1 |
|
return $this->delegate->getReplyTo(); |
132
|
|
|
} |
133
|
|
|
|
134
|
|
|
/** |
135
|
|
|
* @inheritdoc |
136
|
|
|
*/ |
137
|
1 |
|
public function getRoutingKey() |
138
|
|
|
{ |
139
|
1 |
|
return $this->delegate->getRoutingKey(); |
140
|
|
|
} |
141
|
|
|
|
142
|
|
|
/** |
143
|
|
|
* @inheritdoc |
144
|
|
|
*/ |
145
|
1 |
|
public function getTimestamp() |
146
|
|
|
{ |
147
|
1 |
|
return $this->delegate->getTimeStamp(); |
148
|
|
|
} |
149
|
|
|
|
150
|
|
|
/** |
151
|
|
|
* @inheritdoc |
152
|
|
|
*/ |
153
|
1 |
|
public function getType() |
154
|
|
|
{ |
155
|
1 |
|
return $this->delegate->getType(); |
156
|
|
|
} |
157
|
|
|
|
158
|
|
|
/** |
159
|
|
|
* @inheritdoc |
160
|
|
|
*/ |
161
|
1 |
|
public function getUserId() |
162
|
|
|
{ |
163
|
1 |
|
return $this->delegate->getUserId(); |
164
|
|
|
} |
165
|
|
|
|
166
|
|
|
/** |
167
|
|
|
* @inheritdoc |
168
|
|
|
*/ |
169
|
|
|
public function isRedelivery() |
170
|
|
|
{ |
171
|
|
|
return $this->delegate->isRedelivery(); |
172
|
|
|
} |
173
|
|
|
} |
174
|
|
|
|