1 | <?php |
||
20 | class Gate implements GateInterface |
||
21 | { |
||
22 | /** |
||
23 | * @var BusInterface[] |
||
24 | */ |
||
25 | private $buses = array(); |
||
26 | |||
27 | /** |
||
28 | * {@inheritdoc} |
||
29 | */ |
||
30 | public function enableSystemBus() |
||
36 | |||
37 | /** |
||
38 | * {@inheritdoc} |
||
39 | */ |
||
40 | public function disableSystemBus() |
||
44 | |||
45 | /** |
||
46 | * {@inheritdoc} |
||
47 | */ |
||
48 | public function attach(BusInterface $bus) |
||
65 | |||
66 | /** |
||
67 | * {@inheritdoc} |
||
68 | */ |
||
69 | public function detach($busName) |
||
73 | |||
74 | /** |
||
75 | * {@inheritdoc} |
||
76 | */ |
||
77 | public function get($busName) |
||
85 | |||
86 | /** |
||
87 | * {@inheritdoc} |
||
88 | */ |
||
89 | public function has($busName) |
||
93 | |||
94 | /** |
||
95 | * {@inheritdoc} |
||
96 | */ |
||
97 | public function getSystemMessage() |
||
101 | |||
102 | /** |
||
103 | * Assert that bus with specified name is not registered. |
||
104 | * |
||
105 | * @param string $name |
||
106 | * |
||
107 | * @throws InvalidArgumentException |
||
108 | */ |
||
109 | private function assertNotRegisteredBus($name) |
||
115 | |||
116 | /** |
||
117 | * Assert valid system bus. |
||
118 | * |
||
119 | * @param BusInterface $bus |
||
120 | */ |
||
121 | private function assertValidSystemBus(BusInterface $bus) |
||
127 | } |
||
128 |