| 1 | <?php |
||
| 12 | class Dispatcher |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var HttpClient |
||
| 16 | */ |
||
| 17 | private $client; |
||
| 18 | /** |
||
| 19 | * @var Targets |
||
| 20 | */ |
||
| 21 | private $targets; |
||
| 22 | /** |
||
| 23 | * @var DispatchStrategy |
||
| 24 | */ |
||
| 25 | private $strategy; |
||
| 26 | |||
| 27 | 48 | public function __construct(HttpClient $client, Targets $targets, DispatchStrategy $strategy) |
|
| 33 | |||
| 34 | 48 | public function dispatch(RequestInterface $request, ResponseInterface $response, string $action): ResponseInterface |
|
| 38 | } |
||
| 39 |