Type   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 11
dl 0
loc 20
ccs 5
cts 5
cp 1
rs 10
c 1
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getValue() 0 3 1
A __construct() 0 3 1
1
<?php declare(strict_types=1);
2
3
namespace ekinhbayar\GitAmp\Presentation;
4
5
class Type
6
{
7
    public const PUSH_TO_REPOSITORY = 1;
8
    public const PR_ACTION          = 2;
9
    public const ISSUE_ACTION       = 3;
10
    public const COMMENTED_ON_ISSUE = 4;
11
    public const REPOSITORY_FORKED  = 5;
12
    public const REPOSITORY_CREATED = 6;
13
    public const STARTED_WATCHING   = 7;
14
15
    private int $type;
16
17 23
    public function __construct(int $type)
18
    {
19 23
        $this->type = $type;
20 23
    }
21
22 21
    public function getValue(): int
23
    {
24 21
        return $this->type;
25
    }
26
}
27