HttpResponseWrapper   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 29
c 0
b 0
f 0
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
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