GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

ReadLogCommand::getOffset()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace ApiClients\Client\Supervisord\CommandBus\Command;
6
7
use WyriHaximus\Tactician\CommandHandler\Annotations\Handler;
8
9
/**
10
 * @Handler("ApiClients\Client\Supervisord\CommandBus\Handler\ReadLogHandler")
11
 */
12
final class ReadLogCommand
13
{
14
    /**
15
     * @var int
16
     */
17
    private $offset;
18
19
    /**
20
     * @var int
21
     */
22
    private $length;
23
24
    /**
25
     * @param int $offset
26
     * @param int $length
27
     */
28 1
    public function __construct(int $offset, int $length)
29
    {
30 1
        $this->offset = $offset;
31 1
        $this->length = $length;
32 1
    }
33
34
    /**
35
     * @return int
36
     */
37 1
    public function getOffset(): int
38
    {
39 1
        return $this->offset;
40
    }
41
42
    /**
43
     * @return int
44
     */
45 1
    public function getLength(): int
46
    {
47 1
        return $this->length;
48
    }
49
}
50