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
02:33
created

ValidationResult   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 33
ccs 8
cts 8
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 9 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
}