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

HttpResponseWrapper   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 2
Bugs 1 Features 0
Metric Value
c 2
b 1
f 0
dl 0
loc 29
wmc 3
lcom 1
cbo 0
rs 10

3 Methods

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