GenericType   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 2
Metric Value
wmc 1
eloc 5
c 2
b 0
f 2
dl 0
loc 16
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
/**
4
 * This file is part of the sj-i/phpdoc-type-reader package.
5
 *
6
 * (c) sji <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
declare(strict_types=1);
13
14
namespace PhpDocTypeReader\Type;
15
16
class GenericType extends AtomicType
17
{
18
    public AtomicType $base_type;
19
20
    /** @var Type[] */
21
    public array $parameter_types;
22
23
    /**
24
     * GenericType constructor.
25
     * @param AtomicType $base_type
26
     * @param Type[] $parameter_types
27
     */
28
    public function __construct(AtomicType $base_type, array $parameter_types)
29
    {
30
        $this->base_type = $base_type;
31
        $this->parameter_types = $parameter_types;
32
    }
33
}
34