Completed
Push — master ( b2e2db...3e3691 )
by Théo
04:39 queued 02:20
created

ResolvedValue::getName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of the humbug/php-scoper package.
7
 *
8
 * Copyright (c) 2017 Théo FIDRY <[email protected]>,
9
 *                    Pádraic Brady <[email protected]>
10
 *
11
 * For the full copyright and license information, please view the LICENSE
12
 * file that was distributed with this source code.
13
 */
14
15
namespace Humbug\PhpScoper\NodeVisitor\Resolver;
16
17
use PhpParser\Node\Name;
18
19
final class ResolvedValue
20
{
21
    private $name;
22
    private $namespace;
23
    private $use;
24
25 258
    public function __construct(Name $name, ?Name $namespace, ?Name $use)
26
    {
27 258
        $this->name = $name;
28 258
        $this->namespace = $namespace;
29 258
        $this->use = $use;
30
    }
31
32 258
    public function getName(): Name
33
    {
34 258
        return $this->name;
35
    }
36
37
    public function getNamespace(): ?Name
38
    {
39
        return $this->namespace;
40
    }
41
42
    public function getUse(): ?Name
43
    {
44
        return $this->use;
45
    }
46
}
47