1 | <?php |
||
7 | class StatsDMetricService implements MetricService |
||
8 | { |
||
9 | /** @var Collector */ |
||
10 | private $collector; |
||
11 | |||
12 | /** |
||
13 | * MetricService constructor. |
||
14 | * |
||
15 | * @param Collector $collector |
||
16 | */ |
||
17 | 9 | public function __construct(Collector $collector) |
|
21 | |||
22 | /** |
||
23 | * @param $key |
||
24 | */ |
||
25 | 3 | public function increment($key) |
|
29 | |||
30 | /** |
||
31 | * @param $key |
||
32 | * @param float $timeInMs |
||
33 | */ |
||
34 | 3 | public function timing($key, $timeInMs) |
|
38 | } |
||
39 |