IssueClientResponse   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
dl 0
loc 27
ccs 8
cts 8
cp 1
rs 10
c 1
b 0
f 0
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 array $body;
11
12
    private ?string $nextUrl = null;
13
14
    /**
15
     * @param mixed[] $body
16
     */
17 6
    public function __construct(array $body, ?string $nextUrl)
18
    {
19 6
        $this->body    = $body;
20 6
        $this->nextUrl = $nextUrl;
21 6
    }
22
23
    /**
24
     * @return mixed[]
25
     */
26 5
    public function getBody(): array
27
    {
28 5
        return $this->body;
29
    }
30
31 4
    public function getNextUrl(): ?string
32
    {
33 4
        return $this->nextUrl;
34
    }
35
}
36