Completed
Push — master ( f46373...d10f54 )
by
unknown
04:56
created

ResourceReference::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
dl 0
loc 4
rs 10
c 1
b 0
f 1
cc 1
eloc 2
nc 1
nop 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 ResourceReference
12
 *
13
 * @package samsonframework\container\definition
14
 */
15
class ResourceReference implements ReferenceInterface
16
{
17
    /** @var mixed Value of reference */
18
    protected $value;
19
20
    /**
21
     * ResourceReference constructor.
22
     *
23
     * @param string $value Value of reference
24
     */
25
    public function __construct($value)
26
    {
27
        $this->value = $value;
28
    }
29
30
    /**
31
     * @return mixed
32
     */
33
    public function getValue()
34
    {
35
        return $this->value;
36
    }
37
}
38