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

IssueClientResponse   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 28
rs 10
c 0
b 0
f 0
ccs 8
cts 8
cp 1
wmc 3

3 Methods

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