Reference::getId()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

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