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 (#60)
by Marc
02:41
created

ContainerVolumeEntity::__construct()   B

Complexity

Conditions 5
Paths 4

Size

Total Lines 17
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 11
CRAP Score 5.0144

Importance

Changes 0
Metric Value
dl 0
loc 17
ccs 11
cts 12
cp 0.9167
rs 8.8571
c 0
b 0
f 0
cc 5
eloc 7
nc 4
nop 1
crap 5.0144
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 4
    public function __construct($mJobData = [])
19
    {
20 4
        if (is_array($mJobData) || is_object($mJobData))
21 4
        {
22 4
            foreach ($mJobData as $_sKey => $_mValue)
23
            {
24 1
                if (property_exists($this, $_sKey))
25 1
                {
26 1
                    $this->{$_sKey} = $_mValue;
27 1
                }
28 4
            }
29 4
        }
30
        else
31
        {
32
            throw new \InvalidArgumentException(sprintf('Argument 1 passed to "%s" must be an array or object', __METHOD__));
33
        }
34 4
    }
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
}