| Total Complexity | 2 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | class AuthenticatedCommonClient implements HttpClientInterface |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var CommonConfiguration |
||
| 17 | */ |
||
| 18 | private $configuration; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var HttpClientInterface |
||
| 22 | */ |
||
| 23 | private $client; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @param CommonConfiguration $configuration |
||
| 27 | * @param HttpClientInterface $client |
||
| 28 | */ |
||
| 29 | public function __construct( |
||
| 30 | CommonConfiguration $configuration, |
||
| 31 | HttpClientInterface $client |
||
| 32 | ) { |
||
| 33 | $this->configuration = $configuration; |
||
| 34 | $this->client = $client; |
||
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @inheritDoc |
||
| 39 | */ |
||
| 40 | public function sendRequest(string $httpMethod, $uri, array $headers = [], $body = null): ResponseInterface |
||
| 44 | } |
||
| 45 | } |
||
| 46 |