Completed
Push — master ( a12959...164d8d )
by Mario
03:20
created

Response::getCookie()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 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 3
    public function getBody()
30
    {
31 3
        return $this->body;
32
    }
33
34
    /**
35
     * @inheritDoc
36
     */
37 3
    public function getStatusCode()
38
    {
39 3
        return $this->statusCode;
40
    }
41
}
42