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

ServiceReference::getName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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