Total Complexity | 2 |
Total Lines | 17 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | #[\Attribute(\Attribute::TARGET_CLASS)] |
||
19 | final class PrometheusOptions implements OptionsInterface |
||
20 | { |
||
21 | public readonly string $counterName; |
||
22 | |||
23 | public function __construct( |
||
24 | public readonly string $topic, |
||
25 | public readonly string $name, |
||
26 | public readonly string $help, |
||
27 | public readonly array $labels, |
||
28 | public readonly array $values, |
||
29 | public readonly bool $isSerializable = true, |
||
30 | ) {} |
||
31 | |||
32 | public function isSerializable(): bool |
||
35 | } |
||
36 | } |
||
37 |