Exposure   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 3
dl 0
loc 26
c 0
b 0
f 0
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getValue() 0 3 1
A __construct() 0 4 1
A getLevel() 0 3 1
1
<?php
2
3
namespace XSolve\FaceValidatorBundle\Result;
4
5
class Exposure
6
{
7
    /**
8
     * @var ExposureLevel
9
     */
10
    private $level;
11
12
    /**
13
     * @var float
14
     */
15
    private $value;
16
17
    public function __construct(ExposureLevel $level, float $value)
18
    {
19
        $this->level = $level;
20
        $this->value = $value;
21
    }
22
23
    public function getLevel(): ExposureLevel
24
    {
25
        return $this->level;
26
    }
27
28
    public function getValue(): float
29
    {
30
        return $this->value;
31
    }
32
}
33