1 | <?php |
||
19 | class BusProxy implements BusInterface |
||
20 | { |
||
21 | /** |
||
22 | * @var GateInterface |
||
23 | */ |
||
24 | private $gate; |
||
25 | |||
26 | /** |
||
27 | * @var BusInterface |
||
28 | */ |
||
29 | private $bus; |
||
30 | |||
31 | /** |
||
32 | * Constructor. |
||
33 | * |
||
34 | * @param BusInterface $bus |
||
35 | */ |
||
36 | public function __construct(BusInterface $bus) |
||
40 | |||
41 | /** |
||
42 | * {@inheritdoc} |
||
43 | */ |
||
44 | public function setMethod($method) |
||
48 | |||
49 | /** |
||
50 | * {@inheritdoc} |
||
51 | */ |
||
52 | public function getName() |
||
56 | |||
57 | /** |
||
58 | * {@inheritdoc} |
||
59 | */ |
||
60 | public function setGate(GateInterface $gate) |
||
64 | |||
65 | /** |
||
66 | * {@inheritdoc} |
||
67 | */ |
||
68 | public function getGate() |
||
72 | |||
73 | /** |
||
74 | * {@inheritdoc} |
||
75 | */ |
||
76 | public function setHandler($handler) |
||
80 | |||
81 | /** |
||
82 | * {@inheritdoc} |
||
83 | */ |
||
84 | public function isRegistered(MessageInterface $message) |
||
88 | |||
89 | /** |
||
90 | * {@inheritdoc} |
||
91 | */ |
||
92 | public function registers(array $messages) |
||
96 | |||
97 | /** |
||
98 | * {@inheritdoc} |
||
99 | */ |
||
100 | public function register($message, $handler) |
||
104 | |||
105 | /** |
||
106 | * {@inheritdoc} |
||
107 | */ |
||
108 | public function dispatch(MessageInterface $message) |
||
116 | |||
117 | /** |
||
118 | * {@inheritdoc} |
||
119 | */ |
||
120 | public function dispatchNow(MessageInterface $message) |
||
128 | |||
129 | /** |
||
130 | * Dispatch system message. |
||
131 | * |
||
132 | * @param MessageInterface $message |
||
133 | */ |
||
134 | private function dispatchSystemMessage(MessageInterface &$message) |
||
149 | } |
||
150 |