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

BoolReference::getValue()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
ccs 2
cts 2
cp 1
cc 1
eloc 2
nc 1
nop 0
crap 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 BoolReference
12
 *
13
 * @author Ruslan Molodyko <[email protected]>
14
 */
15
class BoolReference implements ReferenceInterface
16
{
17
    /** @var bool Value of reference */
18
    protected $value;
19
20
    /**
21
     * BoolReference constructor
22
     *
23
     * @param bool $value
24
     */
25 4
    public function __construct(bool $value)
26
    {
27 4
        $this->value = $value;
28 4
    }
29
30
    /**
31
     * @return bool
32
     */
33 1
    public function getValue(): bool
34
    {
35 1
        return $this->value;
36
    }
37
}
38