Passed
Push — next ( 737617...5ddafc )
by Bas
13:34 queued 11:32
created

Bucket   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace ArangoClient\Prometheus;
6
7
class Bucket
8
{
9
    /**
10
     * @param int|float|null $value
11
     * @param array<string, mixed>|null $labels
12
     */
13 2
    public function __construct(
14
        public int|float|null|string $value,
15
        public array|null $labels,
16
        public int|float|null|string $timestamp,
17 2
    ) {}
18
}
19