Completed
Push — master ( d10f54...00ced4 )
by
unknown
05:32
created

FloatReference::getValue()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

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