| Total Complexity | 7 |
| Total Lines | 48 |
| Duplicated Lines | 0 % |
| Coverage | 77.78% |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | class BoltApp extends App |
||
| 16 | { |
||
| 17 | const SETTER_INJECTOR = SetterInjector::class; |
||
| 18 | /** |
||
| 19 | * @var EventsHub |
||
| 20 | */ |
||
| 21 | protected $eventsHub; |
||
| 22 | |||
| 23 | 2 | public function injectEventsHub(?EventsHub $eventsHub) |
|
| 24 | { |
||
| 25 | 2 | $this->eventsHub = $eventsHub; |
|
| 26 | 2 | return $this; |
|
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @var RequestContext |
||
| 31 | */ |
||
| 32 | protected $requestContext; |
||
| 33 | |||
| 34 | 2 | public function injectRequestContext(?RequestContext $requestContext) |
|
| 35 | { |
||
| 36 | 2 | $this->requestContext = $requestContext; |
|
| 37 | 2 | return $this; |
|
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @return EventsHub |
||
| 42 | */ |
||
| 43 | public function getEventsHub(): EventsHub |
||
| 46 | } |
||
| 47 | |||
| 48 | 2 | protected function main(): ResponseInterface |
|
| 66 |