Total Complexity | 2 |
Total Lines | 21 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class QueryBus |
||
11 | { |
||
12 | /** |
||
13 | * @var QueryHandlerLocator |
||
14 | */ |
||
15 | private $handlerLocator; |
||
16 | |||
17 | 1 | public function __construct(QueryHandlerLocator $locator) |
|
18 | { |
||
19 | 1 | $this->handlerLocator = $locator; |
|
20 | 1 | } |
|
21 | |||
22 | /** |
||
23 | * @throws QueryHandlerException |
||
24 | * @throws QueryHandlerLocatorException |
||
25 | */ |
||
26 | 1 | public function dispatch(Query $query) |
|
31 | } |
||
32 | } |
||
33 |