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
3declare(strict_types=1);
4
5namespace App\Shared\Api;
6
7interface ApiClientInterface
8{
9    /**
10     * @param string $hostId The host ID to communicate with
11     * @param string $method HTTP Method (GET, POST, PUT, DELETE)
12     * @param string $path API path e.g. '/api/v1/menu'
13     * @param array<string, mixed> $queryParams
14     * @param array<string, mixed>|null $body
15     * @return array<string, mixed> Response from the API
16     */
17    public function request(string $hostId, string $method, string $path, array $queryParams = [], ?array $body = null): array;
18}