RawDefinition::getConcrete()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
declare(strict_types=1);
3
4
namespace Habemus\Definition\Build;
5
6
use Habemus\Definition\Definition;
7
use Habemus\Definition\Identifiable\IdentifiableTrait;
8
use Habemus\Definition\MethodCall\CallableMethod;
9
use Habemus\Definition\MethodCall\CallableMethodTrait;
10
use Habemus\Definition\Sharing\Shareable;
11
use Habemus\Definition\Sharing\ShareableTrait;
12
use Habemus\Definition\Tag\Taggable;
13
use Habemus\Definition\Tag\TaggableTrait;
14
use Psr\Container\ContainerInterface;
15
16
class RawDefinition implements Definition, Shareable, CallableMethod, Taggable
17
{
18
    use IdentifiableTrait;
19
    use ShareableTrait;
20
    use CallableMethodTrait;
21
    use TaggableTrait;
22
23
    /** @var mixed */
24
    protected $value;
25
26
    public function __construct($value)
27
    {
28
        $this->value = $value;
29
    }
30
31
    public function getValue()
32
    {
33
        return $this->value;
34
    }
35
36
    public function getConcrete(ContainerInterface $container)
37
    {
38
        return $this->value;
39
    }
40
}
41