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