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

IpAddress::__construct()   A

Complexity

Conditions 3
Paths 4

Size

Total Lines 13
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 11
CRAP Score 3

Importance

Changes 0
Metric Value
dl 0
loc 13
ccs 11
cts 11
cp 1
rs 9.4285
c 0
b 0
f 0
cc 3
eloc 6
nc 4
nop 1
crap 3
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
12
use Chapi\Entity\Marathon\MarathonEntityUtils;
13
14
class IpAddress
15
{
16
    const DIC = self::class;
17
18
    public $groups = [];
19
20
    public $labels = null;
21
22
    public $networkName = '';
23
24 2
    public function __construct($aData = [])
25
    {
26 2
        MarathonEntityUtils::setAllPossibleProperties($aData, $this);
27
28 2
        if(isset($aData['groups']))
29 2
        {
30 1
            $this->groups = $aData['groups'];
31 1
        }
32 2
        if (isset($aData['labels']))
33 2
        {
34 1
            $this->labels = (object)$aData['labels'];
35 1
        }
36
    }
37
}