| Total Complexity | 4 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | class Metrics |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * @return Counter |
||
| 20 | */ |
||
| 21 | public static function counter() : Counter |
||
| 22 | { |
||
| 23 | return (new Counter)->register(); |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @param float $initial |
||
| 28 | * @return Gauge |
||
| 29 | */ |
||
| 30 | public static function gauge(float $initial = 0) : Gauge |
||
| 31 | { |
||
| 32 | return (new Gauge($initial))->register(); |
||
| 33 | } |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @return Histogram |
||
| 37 | */ |
||
| 38 | public static function histogram() : Histogram |
||
| 39 | { |
||
| 40 | return (new Histogram)->register(); |
||
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @param float ...$quantiles |
||
| 45 | * @return Summary |
||
| 46 | */ |
||
| 47 | public static function summary(float ...$quantiles) : Summary |
||
| 50 | } |
||
| 51 | } |
||
| 52 |