Passed
Pull Request — master (#16)
by
unknown
06:16 queued 02:52
created

EasycreditToHttpResponseAdapter::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
eloc 1
c 1
b 1
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 1
1
<?php
2
3
/**
4
 * MIT License
5
 * For full license information, please view the LICENSE file that was distributed with this source code.
6
 */
7
8
namespace SprykerEco\Zed\Easycredit\Dependency\External;
9
10
use Psr\Http\Message\ResponseInterface;
11
use Psr\Http\Message\StreamInterface;
12
13
class EasycreditToHttpResponseAdapter implements EasycreditToHttpResponseInterface
14
{
15
    /**
16
     * @var \Psr\Http\Message\ResponseInterface
17
     */
18
    protected $response;
19
20
    /**
21
     * @param \Psr\Http\Message\ResponseInterface $response
22
     */
23
    public function __construct(ResponseInterface $response)
24
    {
25
        $this->response = $response;
26
    }
27
28
    /**
29
     * @return \Psr\Http\Message\StreamInterface
30
     */
31
    public function getBody(): StreamInterface
32
    {
33
        return $this->response->getBody();
34
    }
35
}
36