Issues (24)

src/Prometheus/Metric.php (1 issue)

Severity
1
<?php
2
3
declare(strict_types=1);
4
5
namespace ArangoClient\Prometheus;
6
7
class Metric
8
{
9
    /**
10
     * @param string $name
11
     * @param null|string $type
12
     * @param string|null $help
13
     * @param int|float|null $count
14
     * @param int|float|null $sum
15
     * @param int|float|null $value
16
     * @param array<array-key, Bucket>|null $buckets
0 ignored issues
show
Documentation Bug introduced by
The doc comment array<array-key, Bucket>|null at position 2 could not be parsed: Unknown type name 'array-key' at position 2 in array<array-key, Bucket>|null.
Loading history...
17
     * @param array<string, float|int|string>|null $labels
18
     */
19 4
    public function __construct(
20
        public string $name,
21
        public null|string $type = null,
22
        public null|string $help = null,
23
        public int|float|null $count = null,
24
        public int|float|null $sum = null,
25
        public int|float|null $value = null,
26
        public ?array $buckets = [],
27
        public ?array $labels = [],
28 4
        public null|int $timestamp = null,
29
    ) {}
30
}
31