Completed
Push — master ( 0dd019...03ce40 )
by Burhan
04:22
created

EntityVarShiftCode   A

Complexity

Total Complexity 8

Size/Duplication

Total Lines 84
Duplicated Lines 0 %

Test Coverage

Coverage 42.11%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 13
c 2
b 0
f 0
dl 0
loc 84
ccs 8
cts 19
cp 0.4211
rs 10
wmc 8

8 Methods

Rating   Name   Duplication   Size   Complexity  
A setName() 0 3 1
A getName() 0 3 1
A getcPadding() 0 3 1
A setShiftArray() 0 3 1
A setLength() 0 3 1
A getShiftArray() 0 3 1
A setcPadding() 0 3 1
A getLength() 0 3 1
1
<?php
2
/**
3
 * This file is part of graze/unicontroller-client.
4
 *
5
 * Copyright (c) 2016 Nature Delivered Ltd. <https://www.graze.com>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 *
10
 * @license https://github.com/graze/unicontroller-client/blob/master/LICENSE.md
11
 * @link https://github.com/graze/unicontroller-client
12
 */
13
namespace Graze\UnicontrollerClient\Entity\Entity;
14
15
use Graze\UnicontrollerClient\Entity\Entity\EntityInterface;
16
17
class EntityVarShiftCode implements EntityInterface
18
{
19
    /**
20
     * @var string
21
     */
22
    protected $name;
23
24
    /**
25
     * @var EntityShiftDefinition[]
26
     */
27
    protected $shiftArray;
28
29
    /**
30
     * @var int
31
     */
32
    protected $cPadding;
33
34
    /**
35
     * @var int
36
     */
37
    protected $length;
38
39
    /**
40
     * @return string
41
     */
42 1
    public function getName()
43
    {
44 1
        return $this->name;
45
    }
46
47
    /**
48
     * @param string $name
49
     */
50
    public function setName($name)
51
    {
52
        $this->name = $name;
53
    }
54
55
    /**
56
     * @return EntityShiftDefinition[]
57
     */
58 1
    public function getShiftArray()
59
    {
60 1
        return $this->shiftArray;
61
    }
62
63
    /**
64
     * @param array $shiftArray
65
     */
66
    public function setShiftArray(array $shiftArray)
67
    {
68
        $this->shiftArray = $shiftArray;
69
    }
70
71
    /**
72
     * @return int
73
     */
74 1
    public function getcPadding()
75
    {
76 1
        return $this->cPadding;
77
    }
78
79
    /**
80
     * @param int $cPadding
81
     */
82
    public function setcPadding($cPadding)
83
    {
84
        $this->cPadding = $cPadding;
85
    }
86
87
    /**
88
     * @return int
89
     */
90 1
    public function getLength()
91
    {
92 1
        return $this->length;
93
    }
94
95
    /**
96
     * @param int $length
97
     */
98
    public function setLength($length)
99
    {
100
        $this->length = $length;
101
    }
102
}
103