| Total Complexity | 3 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 24 | final class QueryBus implements QueryBusInterface |
||
| 25 | { |
||
| 26 | /** |
||
| 27 | * Wrapped command bus. |
||
| 28 | * |
||
| 29 | * @var MessageBusInterface |
||
| 30 | */ |
||
| 31 | private $wrappedMessageBus; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * QueryBus constructor. |
||
| 35 | * |
||
| 36 | * @param MessageBusInterface $wrappedMessageBus |
||
| 37 | */ |
||
| 38 | public function __construct(MessageBusInterface $wrappedMessageBus) |
||
| 39 | { |
||
| 40 | $this->wrappedMessageBus = $wrappedMessageBus; |
||
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * {@inheritdoc} |
||
| 45 | * |
||
| 46 | * @throws QueryReturnException |
||
| 47 | */ |
||
| 48 | public function handle(Query $query): DTO |
||
| 64 | } |
||
| 65 | } |
||
| 66 |