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.

Activity   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 4
eloc 8
dl 0
loc 24
ccs 10
cts 10
cp 1
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A is() 0 3 1
A __construct() 0 4 1
A data() 0 3 1
A type() 0 3 1
1
<?php
2
declare(strict_types = 1);
3
4
namespace Innmind\LabStation;
5
6
use Innmind\LabStation\Activity\Type;
7
8
final class Activity
9
{
10
    private $type;
11
    private $data;
12
13 94
    public function __construct(Type $type, array $data)
14
    {
15 94
        $this->type = $type;
16 94
        $this->data = $data;
17 94
    }
18
19 78
    public function is(Type $type): bool
20
    {
21 78
        return $this->type->equals($type);
22
    }
23
24 4
    public function type(): Type
25
    {
26 4
        return $this->type;
27
    }
28
29 20
    public function data(): array
30
    {
31 20
        return $this->data;
32
    }
33
}
34