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

Bucket::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

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