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

BootloadConfig::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1

Importance

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