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
Branch feature/add_container_job_supp... (565db8)
by Marc
04:48
created

ContainerVolumeEntity   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 58.33%

Importance

Changes 0
Metric Value
wmc 5
lcom 0
cbo 0
dl 0
loc 32
ccs 7
cts 12
cp 0.5833
rs 10
c 0
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 3
    public function __construct($mJobData = [])
19
    {
20 3
        if (is_array($mJobData) || is_object($mJobData))
21 3
        {
22 3
            foreach ($mJobData as $_sKey => $_mValue)
23
            {
24
                if (property_exists($this, $_sKey))
25
                {
26
                    $this->{$_sKey} = $_mValue;
27
                }
28 3
            }
29 3
        }
30
        else
31
        {
32
            throw new \InvalidArgumentException(sprintf('Argument 1 passed to "%s" must be an array or object', __METHOD__));
33
        }
34 3
    }
35
    
36
    public $containerPath = '';
37
38
    public $hostPath = '';
39
40
    // read-write and read-only.
41
    // val RW, RO = Value
42
    public $mode = '';
43
}