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

EasycreditToHttpResponseAdapter   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
wmc 2
eloc 4
c 1
b 1
f 0
dl 0
loc 21
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getBody() 0 3 1
A __construct() 0 3 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