Response   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 4
Bugs 0 Features 1
Metric Value
wmc 2
c 4
b 0
f 1
lcom 0
cbo 1
dl 0
loc 28
ccs 4
cts 4
cp 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getBody() 0 4 1
A getStatusCode() 0 4 1
1
<?php
2
3
namespace Marek\Toggable\API\Http\Response;
4
5
use Marek\Toggable\API\Toggl\Values\ValueObject;
6
7
/**
8
 * Class Response
9
 * @package Marek\Toggable\API\Http\Response
10
 *
11
 * @property-read int $statusCode
12
 * @property-read array $body
13
 */
14
class Response extends ValueObject implements ResponseInterface
15
{
16
    /**
17
     * @var int
18
     */
19
    protected $statusCode;
20
21
    /**
22
     * @var array
23
     */
24
    protected $body;
25
26
    /**
27
     * @inheritDoc
28
     */
29 26
    public function getBody()
30
    {
31 26
        return $this->body;
32
    }
33
34
    /**
35
     * @inheritDoc
36
     */
37 3
    public function getStatusCode()
38
    {
39 3
        return $this->statusCode;
40
    }
41
}
42