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

Scope   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 6
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Spiral\Core\Attribute;
6
7
/**
8
 * Set a scope in which the dependency can be resolved.
9
 *
10
 * @internal We are testing this feature, it may be changed in the future.
11
 */
12
#[\Attribute(\Attribute::TARGET_CLASS)]
13
final class Scope
14
{
15
    public function __construct(
16
        public string $name,
17
    ) {
18
    }
19
}
20