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

MetricAwareResult::setMetric()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 2
dl 0
loc 4
rs 10
c 0
b 0
f 0
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