| Total Complexity | 4 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Coverage | 77.78% |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | abstract class Counter extends Metric implements Incrementable |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * {@inheritdoc} |
||
| 12 | */ |
||
| 13 | 7 | public function type(): string |
|
| 16 | } |
||
| 17 | |||
| 18 | /** |
||
| 19 | * {@inheritdoc} |
||
| 20 | * |
||
| 21 | * @return self |
||
| 22 | */ |
||
| 23 | public function increment(array $labels = []): Incrementable |
||
| 24 | { |
||
| 25 | return $this->incrementBy(1, $labels); |
||
| 26 | } |
||
| 27 | |||
| 28 | /** |
||
| 29 | * {@inheritdoc} |
||
| 30 | * |
||
| 31 | * @return self |
||
| 32 | */ |
||
| 33 | 6 | public function incrementBy(float $value, array $labels = []): Incrementable |
|
| 42 | } |
||
| 43 | } |
||
| 44 |