@@ 11-17 (lines=7) @@ | ||
8 | protected $orders = []; |
|
9 | protected $preparedDrinks = []; |
|
10 | ||
11 | public function __construct(Channel $inputChannel, Channel $outputChannel = null) |
|
12 | { |
|
13 | $this->setInputChannel($inputChannel); |
|
14 | if (is_object($outputChannel)) { |
|
15 | $this->setOutputChannel($outputChannel); |
|
16 | } |
|
17 | $this->registerCommand('ADD_ORDER', [$this, 'receiveOrder']); |
|
18 | } |
|
19 | ||
20 | protected function doReply(Message $message) |
@@ 33-39 (lines=7) @@ | ||
30 | * |
|
31 | * @return |
|
32 | */ |
|
33 | public function __construct(\PEIP\INF\Channel\Channel $inputChannel, \PEIP\INF\Channel\Channel $outputChannel = null) |
|
34 | { |
|
35 | $this->setEventName('preSend'); |
|
36 | $this->setInputChannel($inputChannel); |
|
37 | if (is_object($outputChannel)) { |
|
38 | $this->setOutputChannel($outputChannel); |
|
39 | } |
|
40 | } |
|
41 | ||
42 | /** |