Test Failed
Push — master ( 53494e...bc3061 )
by Théo
02:45
created

PrefixedName::getOriginalName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 4
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\PhpParser\Node;
16
17
use PhpParser\Node\Name\FullyQualified;
18
19
final class PrefixedName extends FullyQualified
20
{
21
    private $prefixedName;
22
    private $originalName;
23
24
    /**
25
     * @inheritdoc
26
     */
27
    public function __construct(FullyQualified $prefixedName, FullyQualified $originalName, array $attributes = [])
28
    {
29
        parent::__construct($prefixedName, $attributes);
30
31
        $this->prefixedName = new FullyQualified($prefixedName, $attributes);
32
        $this->originalName = new FullyQualified($originalName, $attributes);
33
    }
34
35
    public function getPrefixedName(): FullyQualified
36
    {
37
        return $this->prefixedName;
38
    }
39
40
    public function getOriginalName(): FullyQualified
41
    {
42
        return $this->originalName;
43
    }
44
}
45