1 | <?php |
||
5 | class MessageMutatorRegistry |
||
6 | { |
||
7 | const INCOMING_LOGICAL = 0; |
||
8 | const INCOMING_PHYSICAL = 1; |
||
9 | const OUTGOING_LOGICAL = 2; |
||
10 | const OUTGOING_PHYSICAL = 3; |
||
11 | |||
12 | private $mutators = [ |
||
13 | self::INCOMING_LOGICAL => [], |
||
14 | self::INCOMING_PHYSICAL => [], |
||
15 | self::OUTGOING_LOGICAL => [], |
||
16 | self::OUTGOING_PHYSICAL => [], |
||
17 | ]; |
||
18 | |||
19 | /** |
||
20 | * @param string $mutatorContainerId |
||
21 | */ |
||
22 | 2 | public function registerIncomingLogicalMessageMutator($mutatorContainerId) |
|
26 | |||
27 | /** |
||
28 | * @param string $mutatorContainerId |
||
29 | */ |
||
30 | 2 | public function registerIncomingPhysicalMessageMutator($mutatorContainerId) |
|
34 | |||
35 | /** |
||
36 | * @param string $mutatorContainerId |
||
37 | */ |
||
38 | 2 | public function registerOutgoingLogicalMessageMutator($mutatorContainerId) |
|
42 | |||
43 | /** |
||
44 | * @param string $mutatorContainerId |
||
45 | */ |
||
46 | 2 | public function registerOutgoingPhysicalMessageMutator($mutatorContainerId) |
|
50 | |||
51 | /** |
||
52 | * @return array |
||
53 | */ |
||
54 | 2 | public function getIncomingLogicalMessageMutatorIds() |
|
58 | |||
59 | /** |
||
60 | * @return array |
||
61 | */ |
||
62 | 2 | public function getIncomingPhysicalMessageMutatorIds() |
|
66 | |||
67 | /** |
||
68 | * @return array |
||
69 | */ |
||
70 | 2 | public function getOutgoingLogicalMessageMutatorIds() |
|
74 | |||
75 | /** |
||
76 | * @return array |
||
77 | */ |
||
78 | 2 | public function getOutgoingPhysicalMessageMutatorIds() |
|
82 | } |
||
83 |