Completed
Push — master ( 5a160c...5540f7 )
by Matthieu
04:15
created

RequestedEntryHolder::__construct()   A

Complexity

Conditions 1
Paths 1

Duplication

Lines 0
Ratio 0 %

Size

Total Lines 4
Code Lines 2

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace DI\Compiler;
6
7
use DI\Factory\RequestedEntry;
8
9
/**
10
 * @author Matthieu Napoli <matthieu@mnapoli.fr>
11
 */
12
class RequestedEntryHolder implements RequestedEntry
13
{
14
    /**
15
     * @var string
16
     */
17
    private $name;
18
19
    public function __construct(string $name)
20
    {
21
        $this->name = $name;
22
    }
23
24
    public function getName() : string
25
    {
26
        return $this->name;
27
    }
28
}
29