Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php
2
3// ╔════════════════════════════════════════════════════════════╗
4// ║ MIT Licence (#Expat) - https://opensource.org/licenses/MIT ║
5// ║ Copyright 2026 Frederic Poeydomenge <dyno@phexium.com>     ║
6// ╚════════════════════════════════════════════════════════════╝
7
8declare(strict_types=1);
9
10namespace Phexium\Plugin\QueryBus\Port;
11
12use Phexium\Application\Query\QueryInterface;
13use Phexium\Application\Query\QueryResponseInterface;
14
15interface QueryBusInterface
16{
17    // Dispatches a query to its appropriate handler and returns a response
18    public function dispatch(QueryInterface $query): QueryResponseInterface;
19}