Metric   A
last analyzed

Complexity

Total Complexity 14

Size/Duplication

Total Lines 186
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 29
dl 0
loc 186
rs 10
c 0
b 0
f 0
wmc 14

14 Methods

Rating   Name   Duplication   Size   Complexity  
A setName() 0 5 1
A getSuffix() 0 3 1
A setDisplayChart() 0 5 1
A setSuffix() 0 5 1
A setDescription() 0 5 1
A setCalcType() 0 5 1
A getDescription() 0 3 1
A getCalcType() 0 3 1
A getDefaultValue() 0 3 1
A getDefaultViewName() 0 3 1
A getDisplayChart() 0 3 1
A getName() 0 3 1
A setDefaultValue() 0 5 1
A setDefaultViewName() 0 5 1
1
<?php
2
3
namespace DevoraliveCachet\Entity;
4
5
use JMS\Serializer\Annotation as JMS;
6
7
/**
8
 * Class Metric
9
 * @package DevoraliveCachet\Entity
10
 */
11
class Metric extends Entity
12
{
13
    /**
14
     * @var string
15
     * @JMS\Type("string")
16
     */
17
    protected $name;
18
19
    /**
20
     * @var string
21
     * @JMS\Type("string")
22
     */
23
    protected $suffix;
24
25
    /**
26
     * @var string
27
     * @JMS\Type("string")
28
     */
29
    protected $description;
30
31
    /**
32
     * @var string
33
     * @JMS\Type("string")
34
     * @JMS\SerializedName("default_value")
35
     */
36
    protected $defaultValue;
37
38
    /**
39
     * @var int
40
     * @JMS\Type("int")
41
     * @JMS\SerializedName("calc_type")
42
     */
43
    protected $calcType;
44
45
    /**
46
     * @var int
47
     * @JMS\Type("int")
48
     * @JMS\SerializedName("display_chart")
49
     */
50
    protected $displayChart;
51
52
    /**
53
     * @var int
54
     * @JMS\Type("string")
55
     * @JMS\SerializedName("default_view_name")
56
     */
57
    protected $defaultViewName;
58
59
    /**
60
     * @return string
61
     */
62
    public function getName()
63
    {
64
        return $this->name;
65
    }
66
67
    /**
68
     * @param string $name
69
     *
70
     * @return Metric
71
     */
72
    public function setName($name)
73
    {
74
        $this->name = $name;
75
76
        return $this;
77
    }
78
79
    /**
80
     * @return string
81
     */
82
    public function getSuffix()
83
    {
84
        return $this->suffix;
85
    }
86
87
    /**
88
     * @param string $suffix
89
     *
90
     * @return Metric
91
     */
92
    public function setSuffix($suffix)
93
    {
94
        $this->suffix = $suffix;
95
96
        return $this;
97
    }
98
99
    /**
100
     * @return string
101
     */
102
    public function getDescription()
103
    {
104
        return $this->description;
105
    }
106
107
    /**
108
     * @param string $description
109
     *
110
     * @return Metric
111
     */
112
    public function setDescription($description)
113
    {
114
        $this->description = $description;
115
116
        return $this;
117
    }
118
119
    /**
120
     * @return string
121
     */
122
    public function getDefaultValue()
123
    {
124
        return $this->defaultValue;
125
    }
126
127
    /**
128
     * @param string $defaultValue
129
     *
130
     * @return Metric
131
     */
132
    public function setDefaultValue($defaultValue)
133
    {
134
        $this->defaultValue = $defaultValue;
135
136
        return $this;
137
    }
138
139
    /**
140
     * @return int
141
     */
142
    public function getCalcType()
143
    {
144
        return $this->calcType;
145
    }
146
147
    /**
148
     * @param int $calcType
149
     *
150
     * @return Metric
151
     */
152
    public function setCalcType($calcType)
153
    {
154
        $this->calcType = $calcType;
155
156
        return $this;
157
    }
158
159
    /**
160
     * @return int
161
     */
162
    public function getDisplayChart()
163
    {
164
        return $this->displayChart;
165
    }
166
167
    /**
168
     * @param int $displayChart
169
     *
170
     * @return Metric
171
     */
172
    public function setDisplayChart($displayChart)
173
    {
174
        $this->displayChart = $displayChart;
175
176
        return $this;
177
    }
178
179
    /**
180
     * @return int
181
     */
182
    public function getDefaultViewName()
183
    {
184
        return $this->defaultViewName;
185
    }
186
187
    /**
188
     * @param int $defaultViewName
189
     *
190
     * @return Metric
191
     */
192
    public function setDefaultViewName($defaultViewName)
193
    {
194
        $this->defaultViewName = $defaultViewName;
195
196
        return $this;
197
    }
198
}
199