PreparedQuery   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Conia\Quma;
6
7
class PreparedQuery
8
{
9
    /** @psalm-param array<non-empty-string, non-empty-string> $swaps */
10 6
    public function __construct(
11
        public readonly string $query,
12
        public readonly array $swaps,
13
    ) {
14 6
    }
15
}
16