Passed
Branch master (31b9e5)
by Tomáš
01:44
created

Config   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 4
c 1
b 0
f 0
dl 0
loc 17
ccs 1
cts 1
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Inspirum\XML\Formatter;
6
7
final class Config
8
{
9
    private const ATTRIBUTES = '@attributes';
10
    private const NODES      = '@nodes';
11
    private const VALUE      = '@value';
12
13
    /**
14
     * @param array<int,string> $alwaysArray
15
     */
16 13
    public function __construct(
17
        public readonly array $alwaysArray = [],
18
        public readonly bool $fullResponse = false,
19
        public readonly bool $autoCast = false,
20
        public readonly string $attributesName = self::ATTRIBUTES,
21
        public readonly string $valueName = self::VALUE,
22
        public readonly string $nodesName = self::NODES,
23
    ) {
24
    }
25
}
26