1 | <?php |
||
7 | abstract class OutgoingContext extends PipelineStageContext |
||
8 | { |
||
9 | /** |
||
10 | * @var string |
||
11 | */ |
||
12 | protected $messageId; |
||
13 | |||
14 | /** |
||
15 | * @var array |
||
16 | */ |
||
17 | protected $headers; |
||
18 | |||
19 | /** |
||
20 | * OutgoingContext constructor. |
||
21 | * |
||
22 | * @param string $messageId |
||
23 | * @param array $headers |
||
24 | * @param PipelineStageContext $parentContext |
||
25 | */ |
||
26 | 52 | public function __construct($messageId, array $headers, PipelineStageContext $parentContext) |
|
33 | |||
34 | /** |
||
35 | * @return string |
||
36 | */ |
||
37 | 6 | public function getMessageId() |
|
41 | |||
42 | /** |
||
43 | * @return array |
||
44 | */ |
||
45 | 9 | public function getHeaders() |
|
49 | |||
50 | /** |
||
51 | * @param string $name |
||
52 | * @param string $value |
||
53 | */ |
||
54 | 1 | public function setHeader($name, $value) |
|
58 | |||
59 | /** |
||
60 | * @param array $headers |
||
61 | */ |
||
62 | 1 | public function replaceHeaders(array $headers) |
|
66 | } |
||
67 |