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 (#68)
by Bidesh
02:54
created

HealthCheck   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 37
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 2
lcom 0
cbo 2
dl 0
loc 37
ccs 7
cts 7
cp 1
rs 10
c 2
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: bthapaliya
6
 * @since: 2016-10-16
7
 *
8
 */
9
namespace Chapi\Entity\Marathon\AppEntity;
10
11
use Chapi\Entity\Marathon\AppEntity\HealthCheckCommand;
12
use Chapi\Entity\Marathon\MarathonEntityUtils;
13
14
class HealthCheck
15
{
16
17
    const DIC = self::class;
18
19
    public $protocol = '';
20
21
    public $path = '';
22
23
    public $gracePeriodSeconds = 0;
24
25
    public $intervalSeconds = 0;
26
27
    public $portIndex = 0;
28
29
    public $port = 0;
30
31
    public $timeoutSeconds = 20;
32
33
    public $maxConsecutiveFailures = 0;
34
35
    /**
36
     * @var HealthCheckCommand
37
     */
38
    public $command = null;
39
40 2
    public function __construct($aData = [])
41
    {
42 2
        MarathonEntityUtils::setAllPossibleProperties($aData, $this);
43
44 2
        if(isset($aData['command']))
45 2
        {
46 1
            $this->command = new HealthCheckCommand((array)$aData['command']);
47 1
        }
48 2
    }
49
50
}