| 1 | <?php |
||
| 14 | final class MongoDbDataCollector extends DataCollector |
||
| 15 | { |
||
| 16 | const QUERY_KEYWORD = 'queries'; |
||
| 17 | const CONNECTION_KEYWORD = 'connections'; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * {@inheritdoc} |
||
| 21 | */ |
||
| 22 | public function collect(Request $request, Response $response, \Exception $exception = null) |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @return int |
||
| 36 | */ |
||
| 37 | public function getQueryCount(): int |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @return float |
||
| 44 | */ |
||
| 45 | public function getTime(): float |
||
| 49 | |||
| 50 | /** |
||
| 51 | * {@inheritdoc} |
||
| 52 | */ |
||
| 53 | public function getName() |
||
| 57 | } |
||
| 58 |