Completed
Push — master ( c628d7...8aa25c )
by Miloš
01:17
created

Definition::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 1
dl 0
loc 4
ccs 3
cts 3
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Laganica\Di\Definition;
4
5
use Closure;
6
7
/**
8
 * Class Definition
9
 *
10
 * @package Laganica\Di\Definition
11
 */
12
abstract class Definition implements DefinitionInterface
13
{
14
    /**
15
     * @var Closure|string
16
     */
17
    private $value;
18
19
    /**
20
     * @param Closure|string $value
21
     */
22 4
    public function __construct($value)
23
    {
24 4
        $this->value = $value;
25 4
    }
26
27
    /**
28
     * @return Closure|string
29
     */
30 4
    public function getValue()
31
    {
32 4
        return $this->value;
33
    }
34
}
35