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.

Type::equals()   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 0
Metric Value
eloc 1
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 1
1
<?php
2
declare(strict_types = 1);
3
4
namespace Innmind\LabStation\Activity;
5
6
final class Type
7
{
8
    private $value;
9
10 96
    private function __construct(string $value)
11
    {
12 96
        $this->value = $value;
13 96
    }
14
15 44
    public static function sourcesModified(): self
16
    {
17 44
        return new self('sourcesModified');
18
    }
19
20 14
    public static function testsModified(): self
21
    {
22 14
        return new self('testsModified');
23
    }
24
25 50
    public static function start(): self
26
    {
27 50
        return new self('start');
28
    }
29
30 22
    public static function gitBranchChanged(): self
31
    {
32 22
        return new self('gitBranchChanged');
33
    }
34
35 80
    public function equals(self $other): bool
36
    {
37 80
        return $this->value === $other->value;
38
    }
39
40 4
    public function __toString(): string
41
    {
42 4
        return $this->value;
43
    }
44
}
45