FloatReference   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 60%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 18
rs 10
c 0
b 0
f 0
ccs 3
cts 5
cp 0.6

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getValue() 0 4 1
1
<?php declare(strict_types = 1);
2
/**
3
 * Created by PhpStorm.
4
 * User: root
5
 * Date: 02.08.16
6
 * Time: 0:46.
7
 */
8
namespace samsonframework\container\definition\reference;
9
10
/**
11
 * Class FloatReference
12
 *
13
 * @author Ruslan Molodyko <[email protected]>
14
 */
15
class FloatReference implements ReferenceInterface
16
{
17
    /** @var float Value of reference */
18
    protected $value;
19
20 12
    public function __construct(float $value)
21
    {
22 12
        $this->value = $value;
23 12
    }
24
25
    /**
26
     * @return float
27
     */
28
    public function getValue(): float
29
    {
30
        return $this->value;
31
    }
32
}
33