Passed
Push — master ( e05dd3...01a0a7 )
by Nils
02:57
created

MetricAwareResult   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 29
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A setMetric() 0 4 1
A getMetricValue() 0 3 1
A getMetricUnit() 0 3 1
1
<?php
2
3
namespace Leankoala\HealthFoundation\Check;
4
5
class MetricAwareResult extends Result
6
{
7
    /**
8
     * @var integer
9
     */
10
    private $metricValue;
11
12
    private $metricUnit;
13
14
    public function setMetric($value, $unit)
15
    {
16
        $this->metricValue = $value;
17
        $this->metricUnit = $unit;
18
    }
19
20
    /**
21
     * @return integer
22
     */
23
    public function getMetricValue()
24
    {
25
        return $this->metricValue;
26
    }
27
28
    /**
29
     * @return string
30
     */
31
    public function getMetricUnit()
32
    {
33
        return $this->metricUnit;
34
    }
35
}
36