Passed
Push — master ( ed0785...dc6fb0 )
by Nils
04:37
created

StaticCheck::getIdentifier()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
namespace Leankoala\HealthFoundation\Check\Basic;
4
5
use Leankoala\HealthFoundation\Check\Check;
6
use Leankoala\HealthFoundation\Check\Result;
7
8
/**
9
 * Class StaticCheck
10
 *
11
 *
12
 * @author Nils Langner <[email protected]>
13
 * created 2021-08-05
14
 */
15
class StaticCheck implements Check
16
{
17
    /**
18
     * @var string
19
     */
20
    private $identifier;
21
22
    /**
23
     * @var string
24
     */
25
    private $status;
26
27
    public function __construct($identifier, $status, $message)
28
    {
29
        $this->identifier = $identifier;
30
        $this->status = $status;
31
        $this->message = $message;
0 ignored issues
show
Bug Best Practice introduced by
The property message does not exist. Although not strictly required by PHP, it is generally a best practice to declare properties explicitly.
Loading history...
32
    }
33
34
    public function run()
35
    {
36
        return new Result($this->status, $this->message);
37
    }
38
39
    public function getIdentifier()
40
    {
41
        return $this->identifier;
42
    }
43
}
44