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   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 38
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 3
eloc 7
dl 0
loc 38
ccs 8
cts 8
cp 1
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getName() 0 3 1
A getValue() 0 3 1
A __construct() 0 4 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
}