|
@@ 27-29 (lines=3) @@
|
| 24 |
|
{ |
| 25 |
|
$headers = $envelope->getHeaders(); |
| 26 |
|
|
| 27 |
|
if ($envelope->getReplyTo() !== '' && !isset($headers[HeaderTypeEnum::REPLY_TO_ADDRESS])) { |
| 28 |
|
$headers[HeaderTypeEnum::REPLY_TO_ADDRESS] = $envelope->getReplyTo(); |
| 29 |
|
} |
| 30 |
|
|
| 31 |
|
if ($envelope->getCorrelationId() !== '') { |
| 32 |
|
$headers[HeaderTypeEnum::CORRELATION_ID] = $envelope->getCorrelationId(); |
|
@@ 35-37 (lines=3) @@
|
| 32 |
|
$headers[HeaderTypeEnum::CORRELATION_ID] = $envelope->getCorrelationId(); |
| 33 |
|
} |
| 34 |
|
|
| 35 |
|
if ($envelope->getType() !== '' && !isset($headers[HeaderTypeEnum::ENCLOSED_CLASS])) { |
| 36 |
|
$headers[HeaderTypeEnum::ENCLOSED_CLASS] = $envelope->getType(); |
| 37 |
|
} |
| 38 |
|
|
| 39 |
|
return $headers; |
| 40 |
|
} |