Conditions | 1 |
Paths | 1 |
Total Lines | 6 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | 6 | public function __invoke(Summary $summary, Collection $labels, float $value): void |
|
19 | { |
||
20 | 6 | $identifier = "{$this->key}:" . crc32($labels->toJson()) . ':VALUES'; |
|
21 | |||
22 | 6 | $this->repository->set($this->key, $labels->toJson(), $identifier); |
|
23 | 6 | $this->repository->push($identifier, $value); |
|
24 | 6 | } |
|
26 |