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 Marc
08:42
created

ContainerVolumeEntity   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 38
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 85.71%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 5
lcom 0
cbo 0
dl 0
loc 38
ccs 6
cts 7
cp 0.8571
rs 10
c 1
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
B __construct() 0 17 5
1
<?php
2
/**
3
 * @package: chapi
4
 *
5
 * @author:  msiebeneicher
6
 * @since:   2016-11-04
7
 */
8
9
namespace Chapi\Entity\Chronos\JobEntity;
10
11
12
class ContainerVolumeEntity
13
{
14
    /**
15
     * @param array|object $mJobData
16
     * @throws \InvalidArgumentException
17
     */
18 5
    public function __construct($mJobData = [])
19
    {
20 5
        if (is_array($mJobData) || is_object($mJobData))
21
        {
22 5
            foreach ($mJobData as $_sKey => $_mValue)
23
            {
24 1
                if (property_exists($this, $_sKey))
25
                {
26 5
                    $this->{$_sKey} = $_mValue;
27
                }
28
            }
29
        }
30
        else
31
        {
32
            throw new \InvalidArgumentException(sprintf('Argument 1 passed to "%s" must be an array or object', __METHOD__));
33
        }
34 5
    }
35
    
36
    /** @var string  */
37
    public $containerPath = '';
38
39
    /** @var string  */
40
    public $hostPath = '';
41
42
    /**
43
     * @var string
44
     * 
45
     * read-write and read-only.
46
     * val RW, RO = Value
47
     */
48
    public $mode = '';
49
}