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::__construct()   B

Complexity

Conditions 5
Paths 4

Size

Total Lines 17
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 7
CRAP Score 6.8088

Importance

Changes 0
Metric Value
dl 0
loc 17
ccs 7
cts 12
cp 0.5833
rs 8.8571
c 0
b 0
f 0
cc 5
eloc 7
nc 4
nop 1
crap 6.8088
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
}