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

Ctx::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 0
dl 0
loc 7
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 5
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