Test Failed
Pull Request — master (#870)
by Aleksei
08:56
created

Ctx   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 1
dl 0
loc 13
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Spiral\Core\Internal\Factory;
6
7
/**
8
 * @template TClass of object
9
 */
10
final class Ctx
11
{
12
    /**
13
     * @param class-string<TClass> $class
0 ignored issues
show
Documentation Bug introduced by
The doc comment class-string<TClass> at position 0 could not be parsed: Unknown type name 'class-string' at position 0 in class-string<TClass>.
Loading history...
14
     * @param null|\ReflectionClass<TClass> $reflection
15
     */
16
    public function __construct(
17
        public readonly string $alias,
18
        public string $class,
19
        public ?string $parameter = null,
20
        public ?bool $singleton = null,
21
        public ?\ReflectionClass $reflection = null,
22
    ) {
23
    }
24
}
25