1 | <?php |
||
14 | class UnicastReplyRoutingConnector implements StageConnectorInterface |
||
15 | { |
||
16 | /** |
||
17 | * @var OutgoingContextFactory |
||
18 | */ |
||
19 | private $contextFactory; |
||
20 | |||
21 | /** |
||
22 | * @param OutgoingContextFactory $contextFactory |
||
23 | */ |
||
24 | 9 | public function __construct(OutgoingContextFactory $contextFactory) |
|
28 | |||
29 | /** |
||
30 | * @param OutgoingReplyContext $context |
||
31 | * @param callable $next |
||
32 | */ |
||
33 | 6 | public function invoke($context, callable $next) |
|
49 | |||
50 | /** |
||
51 | * @param IncomingPhysicalMessage|null $incomingPhysicalMessage |
||
52 | * |
||
53 | * @return string |
||
54 | */ |
||
55 | 5 | private function getReplyToAddressFromIncomingMessage(IncomingPhysicalMessage $incomingPhysicalMessage = null) |
|
71 | |||
72 | /** |
||
73 | * @return string |
||
74 | */ |
||
75 | 1 | public static function getStageContextClass() |
|
79 | |||
80 | /** |
||
81 | * @return string |
||
82 | */ |
||
83 | 1 | public static function getNextStageContextClass() |
|
87 | } |
||
88 |
In PHP, under loose comparison (like
==
, or!=
, orswitch
conditions), values of different types might be equal.For
string
values, the empty string''
is a special case, in particular the following results might be unexpected: