Passed
Pull Request — master (#1017)
by Maxim
12:07
created

BootloadConfig   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
eloc 2
c 0
b 0
f 0
dl 0
loc 10
ccs 1
cts 1
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Spiral\Boot\Attribute;
6
7
use Spiral\Attributes\NamedArgumentConstructor;
8
9
#[\Attribute(\Attribute::TARGET_CLASS), NamedArgumentConstructor]
10
class BootloadConfig
11
{
12 520
    public function __construct(
13
        public array $args = [],
14
        public bool $enabled = true,
15
        public array $allowEnv = [],
16
        public array $denyEnv = [],
17
        public bool $override = true,
18
    ) {
19 520
    }
20
}
21