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

Complexity

Conditions 5
Paths 4

Size

Total Lines 17
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 6
CRAP Score 5.0729

Importance

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