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

Reference::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 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
}