CoremediaToGuzzleBridge   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 24
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A send() 0 3 1
1
<?php
2
3
/**
4
 * Copyright © 2016-present Spryker Systems GmbH. All rights reserved.
5
 * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file.
6
 */
7
8
namespace SprykerEco\Client\Coremedia\Dependency\Guzzle;
9
10
use Psr\Http\Message\RequestInterface;
11
use Psr\Http\Message\ResponseInterface;
12
13
class CoremediaToGuzzleBridge implements CoremediaToGuzzleInterface
14
{
15
    /**
16
     * @var \GuzzleHttp\Client
17
     */
18
    protected $client;
19
20
    /**
21
     * @param \GuzzleHttp\Client $client
22
     */
23
    public function __construct($client)
24
    {
25
        $this->client = $client;
26
    }
27
28
    /**
29
     * @param \Psr\Http\Message\RequestInterface $request
30
     * @param array $options
31
     *
32
     * @return \Psr\Http\Message\ResponseInterface
33
     */
34
    public function send(RequestInterface $request, array $options = []): ResponseInterface
35
    {
36
        return $this->client->send($request, $options);
37
    }
38
}
39