1 | <?php |
||
20 | class GeocoderDataCollector extends DataCollector |
||
21 | { |
||
22 | /** |
||
23 | * @var ProfilingProvider[] |
||
24 | */ |
||
25 | private $instances = []; |
||
26 | |||
27 | |||
28 | public function __construct() |
||
33 | |||
34 | /** |
||
35 | * {@inheritdoc} |
||
36 | */ |
||
37 | public function collect(Request $request, Response $response, \Exception $exception = null) |
||
47 | |||
48 | /** |
||
49 | * Returns an array of collected requests. |
||
50 | * |
||
51 | * @return array |
||
52 | */ |
||
53 | public function getQueries(): array |
||
57 | |||
58 | /** |
||
59 | * Returns the execution time of all collected requests in seconds. |
||
60 | * |
||
61 | * @return float |
||
62 | */ |
||
63 | public function getTotalDuration() |
||
72 | |||
73 | /** |
||
74 | * @return array |
||
75 | */ |
||
76 | public function getProviders(): array |
||
80 | |||
81 | /** |
||
82 | * @param string $provider |
||
83 | * |
||
84 | * @return array |
||
85 | */ |
||
86 | public function getProviderQueries($provider):array |
||
92 | |||
93 | /** |
||
94 | * @param ProfilingProvider $instance |
||
95 | */ |
||
96 | public function addInstance(ProfilingProvider $instance) |
||
101 | |||
102 | /** |
||
103 | * {@inheritdoc} |
||
104 | */ |
||
105 | public function getName() |
||
109 | } |
||
110 |