Total Complexity | 4 |
Total Lines | 54 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class TextRenderer implements Renderable |
||
11 | { |
||
12 | public const CONTENT_TYPE = 'text/plain; version=0.0.4'; |
||
13 | |||
14 | /** |
||
15 | * {@inheritdoc} |
||
16 | */ |
||
17 | 34 | public function render(Collection $metrics): string |
|
22 | } |
||
23 | |||
24 | /** |
||
25 | * @param Collection $labels |
||
26 | * |
||
27 | * @return string |
||
28 | */ |
||
29 | 32 | protected function serialize(Collection $labels): string |
|
42 | } |
||
43 | |||
44 | /** |
||
45 | * @param MetricFamilySamples $family |
||
46 | * |
||
47 | * @return Collection |
||
48 | */ |
||
49 | 32 | protected function transform(MetricFamilySamples $family): Collection |
|
66 |