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

Definition   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 23
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getValue() 0 4 1
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