Completed
Push — master ( aaccd5...c6e65b )
by Jonathan
10s
created

IssueClientResponse::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 2
dl 0
loc 4
rs 10
c 0
b 0
f 0
ccs 3
cts 3
cp 1
crap 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace ChangelogGenerator;
6
7
class IssueClientResponse
8
{
9
    /** @var mixed[] */
10
    private $body;
11
12
    /** @var string|null */
13
    private $nextUrl;
14
15
    /**
16
     * @param mixed[] $body
17
     */
18 5
    public function __construct(array $body, ?string $nextUrl)
19
    {
20 5
        $this->body    = $body;
21 5
        $this->nextUrl = $nextUrl;
22 5
    }
23
24
    /**
25
     * @return mixed[]
26
     */
27 4
    public function getBody() : array
28
    {
29 4
        return $this->body;
30
    }
31
32 4
    public function getNextUrl() : ?string
33
    {
34 4
        return $this->nextUrl;
35
    }
36
}
37