CoremediaToGuzzleBridge::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
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