Completed
Push — master ( 850634...9eeabf )
by Gonzalo
06:26
created

HttpResponseWrapper::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
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
0 ignored issues
show
Bug introduced by
There is one abstract method getResponse in this class; you could implement it, or declare this class as abstract.
Loading history...
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
}