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.

ValidationResult::__construct()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 6
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 8
ccs 6
cts 6
cp 1
rs 9.4285
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
class ValidationResult
13
{
14
    /**
15
     * @var string
16
     */
17
    public $propertyName = '';
18
19
    /**
20
     * @var bool
21
     */
22
    public $isValid = false;
23
24
    /**
25
     * @var string
26
     */
27
    public $errorMessage = '';
28
29
    /**
30
     * ValidationResult constructor.
31
     * @param string $propertyName
32
     * @param boolean $isValid
33
     * @param string $errorMessage
34
     */
35 4
    public function __construct($propertyName, $isValid, $errorMessage)
36
    {
37 4
        $this->propertyName = $propertyName;
38 4
        $this->isValid = $isValid;
39 4
        if (!$isValid) {
40 2
            $this->errorMessage = $errorMessage;
41
        }
42 4
    }
43
}
44