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

EntityVarMacro   A

Complexity

Total Complexity 12

Size/Duplication

Total Lines 126
Duplicated Lines 0 %

Test Coverage

Coverage 41.38%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 19
c 1
b 0
f 0
dl 0
loc 126
ccs 12
cts 29
cp 0.4138
rs 10
wmc 12

12 Methods

Rating   Name   Duplication   Size   Complexity  
A getMacroDefinition() 0 3 1
A getLength() 0 3 1
A setName() 0 3 1
A getName() 0 3 1
A setMacroDefinition() 0 3 1
A getcPadding() 0 3 1
A setIsRtc() 0 3 1
A setLength() 0 3 1
A setIsSeq() 0 3 1
A getIsRtc() 0 3 1
A getIsSeq() 0 3 1
A setcPadding() 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 EntityVarMacro implements EntityInterface
18
{
19
    /**
20
     * @var string
21
     */
22
    protected $name;
23
24
    /**
25
     * @var string
26
     */
27
    protected $macroDefinition;
28
29
    /**
30
     * @var int
31
     */
32
    protected $isSeq;
33
34
    /**
35
     * @var int
36
     */
37
    protected $isRtc;
38
39
    /**
40
     * @var int
41
     */
42
    protected $cPadding;
43
44
    /**
45
     * @var int
46
     */
47
    protected $length;
48
49
    /**
50
     * @return string
51
     */
52 1
    public function getName()
53
    {
54 1
        return $this->name;
55
    }
56
57
    /**
58
     * @param string $name
59
     */
60
    public function setName($name)
61
    {
62
        $this->name = $name;
63
    }
64
65
    /**
66
     * @return string
67
     */
68 1
    public function getMacroDefinition()
69
    {
70 1
        return $this->macroDefinition;
71
    }
72
73
    /**
74
     * @param string $macroDefinition
75
     */
76
    public function setMacroDefinition($macroDefinition)
77
    {
78
        $this->macroDefinition = $macroDefinition;
79
    }
80
81
    /**
82
     * @return int
83
     */
84 1
    public function getIsSeq()
85
    {
86 1
        return $this->isSeq;
87
    }
88
89
    /**
90
     * @param int $isSeq
91
     */
92
    public function setIsSeq($isSeq)
93
    {
94
        $this->isSeq = $isSeq;
95
    }
96
97
    /**
98
     * @return int
99
     */
100 1
    public function getIsRtc()
101
    {
102 1
        return $this->isRtc;
103
    }
104
105
    /**
106
     * @param int $isRtc
107
     */
108
    public function setIsRtc($isRtc)
109
    {
110
        $this->isRtc = $isRtc;
111
    }
112
113
    /**
114
     * @return int
115
     */
116 1
    public function getcPadding()
117
    {
118 1
        return $this->cPadding;
119
    }
120
121
    /**
122
     * @param int $cPadding
123
     */
124
    public function setcPadding($cPadding)
125
    {
126
        $this->cPadding = $cPadding;
127
    }
128
129
    /**
130
     * @return int
131
     */
132 1
    public function getLength()
133
    {
134 1
        return $this->length;
135
    }
136
137
    /**
138
     * @param int $length
139
     */
140
    public function setLength($length)
141
    {
142
        $this->length = $length;
143
    }
144
}
145