1 | <?php |
||
15 | class ElasticaDataCollector extends DataCollector |
||
16 | { |
||
17 | protected $logger; |
||
18 | |||
19 | 4 | public function __construct(ElasticaLogger $logger) |
|
23 | |||
24 | /** |
||
25 | * {@inheritdoc} |
||
26 | */ |
||
27 | 3 | public function collect(Request $request, Response $response, \Exception $exception = null) |
|
32 | |||
33 | 1 | public function getQueryCount() |
|
37 | |||
38 | 1 | public function getQueries() |
|
42 | |||
43 | 1 | public function getTime() |
|
52 | |||
53 | /** |
||
54 | * {@inheritdoc} |
||
55 | */ |
||
56 | public function getName() |
||
60 | } |
Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a
@return
annotation as described here.