Completed
Push — master ( 351c32...271583 )
by Taosikai
19:55 queued 04:54
created

Reference   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 getId() 0 4 1
1
<?php
2
/*
3
 * This file is part of the slince/di package.
4
 *
5
 * (c) Slince <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
namespace Slince\Di;
11
12
class Reference
13
{
14
    /**
15
     * Service ID
16
     * @var string
17
     */
18
    protected $id;
19
20
    public function __construct($id)
21
    {
22
        $this->id = $id;
23
    }
24
25
    /**
26
     * Get service ID
27
     *
28
     * @return string
29
     */
30
    public function getId()
31
    {
32
        return $this->id;
33
    }
34
}