1 | <?php |
||
17 | class StartableEndpoint |
||
18 | { |
||
19 | /** |
||
20 | * @var Settings |
||
21 | */ |
||
22 | private $settings; |
||
23 | |||
24 | /** |
||
25 | * @var PersistenceDefinitionApplier |
||
26 | */ |
||
27 | private $persistenceDefinitionApplier; |
||
28 | |||
29 | /** |
||
30 | * @var BuilderInterface |
||
31 | */ |
||
32 | private $builder; |
||
33 | |||
34 | /** |
||
35 | * @var PipelineModifications |
||
36 | */ |
||
37 | private $pipelineModifications; |
||
38 | |||
39 | /** |
||
40 | * @var BusContextInterface |
||
41 | */ |
||
42 | private $busContext; |
||
43 | |||
44 | /** |
||
45 | * @var bool |
||
46 | */ |
||
47 | private $isPrepared = false; |
||
48 | |||
49 | |||
50 | /** |
||
51 | * @param Settings $settings |
||
52 | * @param PersistenceDefinitionApplier $persistenceDefinitionApplier |
||
53 | * @param BuilderInterface $builder |
||
54 | * @param PipelineModifications $pipelineModifications |
||
55 | * @param BusContextInterface $busContext |
||
56 | */ |
||
57 | public function __construct( |
||
70 | |||
71 | |||
72 | /** |
||
73 | * @return StartableEndpoint |
||
74 | */ |
||
75 | public function prepare() |
||
114 | |||
115 | /** |
||
116 | * @return EndpointInstance |
||
117 | */ |
||
118 | public function start() |
||
132 | |||
133 | /** |
||
134 | * @return BusContextInterface |
||
135 | */ |
||
136 | public function getBusContext() |
||
140 | |||
141 | /** |
||
142 | * @return boolean |
||
143 | */ |
||
144 | public function isIsPrepared() |
||
148 | |||
149 | /** |
||
150 | * @return Settings |
||
151 | */ |
||
152 | public function getSettings() |
||
156 | |||
157 | /** |
||
158 | * @return BuilderInterface |
||
159 | */ |
||
160 | public function getBuilder() |
||
164 | |||
165 | /** |
||
166 | * @return PipelineModifications |
||
167 | */ |
||
168 | public function getPipelineModifications() |
||
172 | } |
||
173 |