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.
Completed
Pull Request — master (#61)
by Marc
04:35
created

ValidationResult::__construct()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 9
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 8
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 9
ccs 8
cts 8
cp 1
rs 9.6666
c 0
b 0
f 0
cc 2
eloc 5
nc 2
nop 3
crap 2
1
<?php
2
/**
3
 * @package: chapi
4
 *
5
 * @author:  msiebeneicher
6
 * @since:   2016-11-10
7
 *
8
 */
9
10
namespace Chapi\Entity\JobValidator;
11
12
13
class ValidationResult
14
{
15
    /**
16
     * @var string
17
     */
18
    public $sPropertyName = '';
19
20
    /**
21
     * @var bool
22
     */
23
    public $bIsValid = false;
24
25
    /**
26
     * @var string
27
     */
28
    public $sErrorMessage = '';
29
30
    /**
31
     * ValidationResult constructor.
32
     * @param string $sPropertyName
33
     * @param boolean $bIsValid
34
     * @param string $sErrorMessage
35
     */
36 4
    public function __construct($sPropertyName, $bIsValid, $sErrorMessage)
37
    {
38 4
        $this->sPropertyName = $sPropertyName;
39 4
        $this->bIsValid = $bIsValid;
40 4
        if (!$bIsValid)
41 4
        {
42 2
            $this->sErrorMessage = $sErrorMessage;
43 2
        }
44
    }
45
}