@@ -25,6 +25,10 @@ class InMemoryClientAdapter implements StatsDClientAdapter, TagNormalizerAware
2525 protected InMemoryStatsRecord $ stats ;
2626 protected readonly ClockInterface $ clock ;
2727
28+ /**
29+ * @param ClockInterface $clock
30+ * @param array<mixed, mixed> $defaultTags
31+ */
2832 public function __construct (ClockInterface $ clock = new Clock (), array $ defaultTags = [])
2933 {
3034 $ this ->clock = $ clock ;
@@ -34,6 +38,9 @@ public function __construct(ClockInterface $clock = new Clock(), array $defaultT
3438 $ this ->setDefaultTags ($ defaultTags );
3539 }
3640
41+ /**
42+ * @inheritDoc
43+ */
3744 public function timing (string $ stat , float $ durationMs , float $ sampleRate = 1.0 , array $ tags = []): void
3845 {
3946 $ this ->stats ->timing [] = new InMemoryTimingRecord (
@@ -45,6 +52,9 @@ public function timing(string $stat, float $durationMs, float $sampleRate = 1.0,
4552 );
4653 }
4754
55+ /**
56+ * @inheritDoc
57+ */
4858 public function gauge (string $ stat , float $ value , float $ sampleRate = 1.0 , array $ tags = []): void
4959 {
5060 $ this ->stats ->gauge [] = new InMemoryGaugeRecord (
@@ -103,7 +113,10 @@ public function decrement(array|string $stats, float $sampleRate = 1.0, array $t
103113 $ this ->updateStats ($ stats , $ value , $ sampleRate , $ tags );
104114 }
105115
106- public function updateStats (array |string $ stats , int $ delta = 1 , $ sampleRate = 1.0 , $ tags = null ): void
116+ /**
117+ * @inheritDoc
118+ */
119+ public function updateStats (array |string $ stats , int $ delta = 1 , float $ sampleRate = 1.0 , array $ tags = []): void
107120 {
108121 $ stats = (array ) $ stats ;
109122 $ now = $ this ->clock ->now ();
0 commit comments