HttpResponseWrapper::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
rs 10
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
4
namespace Mrzard\OpenExchangeRates\Service;
5
6
7
class HttpResponseWrapper implements HttpResponseInterface
8
{
9
    /** @var object */
10
    private $wrappedResponse;
11
12
    /**
13
     * @param object $wrappedResponse
14
     */
15
    public function __construct($wrappedResponse)
16
    {
17
        $this->wrappedResponse = $wrappedResponse;
18
    }
19
20
    /**
21
     * @return object
22
     */
23
    public function getWrappedResponse()
24
    {
25
        return $this->wrappedResponse;
26
    }
27
28
    /**
29
     * @inheritdoc
30
     */
31
    public function getBody()
32
    {
33
        return $this->wrappedResponse->getBody();
34
    }
35
}
36
37