summaryrefslogtreecommitdiff
path: root/src/MetricsInterface.php
diff options
context:
space:
mode:
authorParamtamtam <[email protected]>2019-12-25 23:00:22 +0500
committerParamtamtam <[email protected]>2019-12-25 23:00:22 +0500
commit4016bdf2d53faca43408dd28b0809a45d508d338 (patch)
tree2eda37a4a0c4b5b65ad9a0df067f466be9778707 /src/MetricsInterface.php
parent2e0f9fac31764ff137ff0e1a03bfc332f94e1e0f (diff)
PHP sources updated (phpstan level MAX)
Diffstat (limited to 'src/MetricsInterface.php')
-rw-r--r--src/MetricsInterface.php28
1 files changed, 16 insertions, 12 deletions
diff --git a/src/MetricsInterface.php b/src/MetricsInterface.php
index e0e2260a..ec2009b0 100644
--- a/src/MetricsInterface.php
+++ b/src/MetricsInterface.php
@@ -17,44 +17,48 @@ interface MetricsInterface
/**
* Add collector value. Fallback to appropriate method of related collector.
*
- * @param string $collector
- * @param float $value
- * @param array $labels
+ * @param string $collector
+ * @param float $value
+ * @param mixed[] $labels
*
* @throws MetricException
+ * @return void
*/
public function add(string $collector, float $value, array $labels = []);
/**
* Subtract the collector value, only for gauge collector.
*
- * @param string $collector
- * @param float $value
- * @param array $labels
+ * @param string $collector
+ * @param float $value
+ * @param mixed[] $labels
*
* @throws MetricException
+ * @return void
*/
public function sub(string $collector, float $value, array $labels = []);
/**
* Observe collector value, only for histogram and summary collectors.
*
- * @param string $collector
- * @param float $value
- * @param array $labels
+ * @param string $collector
+ * @param float $value
+ * @param mixed[] $labels
*
* @throws MetricException
+ * @return void
*/
public function observe(string $collector, float $value, array $labels = []);
/**
* Set collector value, only for gauge collector.
*
- * @param string $collector
- * @param float $value
- * @param array $labels
+ * @param string $collector
+ * @param float $value
+ * @param mixed[] $labels
*
* @throws MetricException
+ * @return void
*/
public function set(string $collector, float $value, array $labels = []);
}