diff options
author | Anton Titov <[email protected]> | 2019-12-26 14:52:08 +0300 |
---|---|---|
committer | GitHub <[email protected]> | 2019-12-26 14:52:08 +0300 |
commit | 170913cd222a13863d46dd77ccc88d99c32829db (patch) | |
tree | 2eda37a4a0c4b5b65ad9a0df067f466be9778707 /src/Metrics.php | |
parent | 1737dbb730de9d061c8b03733400a7b292e71822 (diff) | |
parent | ad5f8449d3cdcfc17804c1aa8d3415db569b4c1b (diff) |
Merge pull request #229 from tarampampam/master
Optimize GitHub Actions workflow and integrate static code analyzer (phpstan)
Diffstat (limited to 'src/Metrics.php')
-rw-r--r-- | src/Metrics.php | 32 |
1 files changed, 4 insertions, 28 deletions
diff --git a/src/Metrics.php b/src/Metrics.php index 6fe4c4f5..d6b6e1da 100644 --- a/src/Metrics.php +++ b/src/Metrics.php @@ -31,13 +31,7 @@ final class Metrics implements MetricsInterface } /** - * Add collector value. Fallback to appropriate method of related collector. - * - * @param string $name - * @param float $value - * @param array $labels - * - * @throws MetricException + * @inheritDoc */ public function add(string $name, float $value, array $labels = []): void { @@ -49,13 +43,7 @@ final class Metrics implements MetricsInterface } /** - * Subtract the collector value, only for gauge collector. - * - * @param string $name - * @param float $value - * @param array $labels - * - * @throws MetricException + * @inheritDoc */ public function sub(string $name, float $value, array $labels = []): void { @@ -67,13 +55,7 @@ final class Metrics implements MetricsInterface } /** - * Observe collector value, only for histogram and summary collectors. - * - * @param string $name - * @param float $value - * @param array $labels - * - * @throws MetricException + * @inheritDoc */ public function observe(string $name, float $value, array $labels = []): void { @@ -85,13 +67,7 @@ final class Metrics implements MetricsInterface } /** - * Set collector value, only for gauge collector. - * - * @param string $name - * @param float $value - * @param array $labels - * - * @throws MetricException + * @inheritDoc */ public function set(string $name, float $value, array $labels = []): void { |