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.

Artifact::getName()   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
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 1
nc 1
nop 0
crap 1
1
<?php
2
3
4
namespace Kami\Component\RequestProcessor;
5
6
/**
7
 * Class Artifact
8
 *
9
 * @package Kami\Component\RequestProcessor
10
 */
11
final class Artifact
12
{
13
    /**
14
     * @var string
15
     */
16
    private $name;
17
18
    /**
19
     * @var mixed
20
     */
21
    private $value;
22
23
    /**
24
     * Artifact constructor.
25
     * @param string $name
26
     *
27
     * @param $value
28
     */
29 18
    public function __construct(string $name, $value)
30
    {
31 18
        $this->name = $name;
32 18
        $this->value = $value;
33 18
    }
34
35
    /**
36
     * @return string
37
     */
38 15
    public function getName(): string
39
    {
40 15
        return $this->name;
41
    }
42
43
    /**
44
     * @return mixed
45
     */
46 4
    public function getValue()
47
    {
48 4
        return $this->value;
49
    }
50
}