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

Config::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1

Importance

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