IssueClientResponse::getNextUrl()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
ccs 2
cts 2
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 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