ClassAliasFuncCall   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 11
c 1
b 0
f 0
dl 0
loc 20
ccs 10
cts 10
cp 1
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 18 1
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\Arg;
18
use PhpParser\Node\Expr\ConstFetch;
19
use PhpParser\Node\Expr\FuncCall;
20
use PhpParser\Node\Name\FullyQualified;
21
use PhpParser\Node\Scalar\String_;
22
23
final class ClassAliasFuncCall extends FuncCall
24
{
25
    public function __construct(FullyQualified $prefixedName, FullyQualified $originalName, array $attributes = [])
26
    {
27
        parent::__construct(
28 77
            new FullyQualified('class_alias'),
29
            [
30 77
                new Arg(
31 77
                    new String_((string) $prefixedName),
32
                ),
33 77
                new Arg(
34 77
                    new String_((string) $originalName),
35
                ),
36 77
                new Arg(
37 77
                    new ConstFetch(
38
                        new FullyQualified('false'),
39 77
                    ),
40 77
                ),
41 77
            ],
42
            $attributes,
43
        );
44
    }
45
}
46