@@ 48-63 (lines=16) @@ | ||
45 | /** |
|
46 | * {@inheritdoc} |
|
47 | */ |
|
48 | public function geocodeQuery(GeocodeQuery $query): Collection |
|
49 | { |
|
50 | $this->stopwatch->start('geocode', 'geocoder'); |
|
51 | ||
52 | try { |
|
53 | $result = $this->delegate->geocodeQuery($query); |
|
54 | } catch (\Throwable $e) { |
|
55 | $this->stopwatch->stop('geocode'); |
|
56 | ||
57 | throw $e; |
|
58 | } |
|
59 | ||
60 | $this->stopwatch->stop('geocode'); |
|
61 | ||
62 | return $result; |
|
63 | } |
|
64 | ||
65 | /** |
|
66 | * {@inheritdoc} |
|
@@ 68-83 (lines=16) @@ | ||
65 | /** |
|
66 | * {@inheritdoc} |
|
67 | */ |
|
68 | public function reverseQuery(ReverseQuery $query): Collection |
|
69 | { |
|
70 | $this->stopwatch->start('reverse', 'geocoder'); |
|
71 | ||
72 | try { |
|
73 | $result = $this->delegate->reverseQuery($query); |
|
74 | } catch (\Throwable $e) { |
|
75 | $this->stopwatch->stop('reverse'); |
|
76 | ||
77 | throw $e; |
|
78 | } |
|
79 | ||
80 | $this->stopwatch->stop('reverse'); |
|
81 | ||
82 | return $result; |
|
83 | } |
|
84 | ||
85 | public function __call($method, $args) |
|
86 | { |