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

ServiceReference   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 23
rs 10
c 0
b 0
f 0

2 Methods

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