1 | <?php |
||
23 | class GeocoderDataCollector extends DataCollector |
||
24 | { |
||
25 | /** |
||
26 | * @var ProfilingPlugin[] |
||
27 | */ |
||
28 | private $instances = []; |
||
29 | |||
30 | public function __construct() |
||
35 | |||
36 | /** |
||
37 | * {@inheritdoc} |
||
38 | */ |
||
39 | public function reset() |
||
45 | |||
46 | /** |
||
47 | * {@inheritdoc} |
||
48 | */ |
||
49 | public function collect(Request $request, Response $response, \Exception $exception = null) |
||
63 | |||
64 | /** |
||
65 | * Returns an array of collected requests. |
||
66 | * |
||
67 | * @return array |
||
68 | */ |
||
69 | public function getQueries(): array |
||
73 | |||
74 | /** |
||
75 | * Returns the execution time of all collected requests in seconds. |
||
76 | * |
||
77 | * @return float |
||
78 | */ |
||
79 | public function getTotalDuration(): float |
||
88 | |||
89 | /** |
||
90 | * @return array |
||
91 | */ |
||
92 | public function getProviders(): array |
||
96 | |||
97 | /** |
||
98 | * @param string $provider |
||
99 | * |
||
100 | * @return array |
||
101 | */ |
||
102 | public function getProviderQueries(string $provider): array |
||
108 | |||
109 | /** |
||
110 | * @param ProfilingPlugin $instance |
||
111 | */ |
||
112 | public function addInstance(ProfilingPlugin $instance) |
||
117 | |||
118 | /** |
||
119 | * {@inheritdoc} |
||
120 | */ |
||
121 | public function getName(): string |
||
125 | } |
||
126 |