@@ -25,26 +25,48 @@ class TimedGeocoder implements Geocoder
25
25
26
26
public function __construct (Geocoder $ delegate , Stopwatch $ stopwatch )
27
27
{
28
- $ this ->delegate = $ delegate ;
28
+ $ this ->delegate = $ delegate ;
29
29
$ this ->stopwatch = $ stopwatch ;
30
30
}
31
31
32
+ /**
33
+ * {@inheritDoc}
34
+ */
32
35
public function geocode ($ value )
33
36
{
34
- $ this ->stopwatch ->start ('geocode ' , 'geocoder ' );
35
- $ result = $ this ->delegate ->geocode ($ value );
36
- $ this ->stopwatch ->stop ('geocode ' );
37
+ $ this ->stopwatch ->start ('geocode ' , 'geocoder ' );
38
+ $ result = $ this ->delegate ->geocode ($ value );
39
+ $ this ->stopwatch ->stop ('geocode ' );
37
40
38
- return $ result ;
41
+ return $ result ;
39
42
}
40
43
44
+ /**
45
+ * {@inheritDoc}
46
+ */
41
47
public function reverse ($ latitude , $ longitude )
42
48
{
43
- $ this ->stopwatch ->start ('reverse ' , 'geocoder ' );
44
- $ result = $ this ->delegate ->reverse ($ latitude , $ longitude );
45
- $ this ->stopwatch ->stop ('reverse ' );
49
+ $ this ->stopwatch ->start ('reverse ' , 'geocoder ' );
50
+ $ result = $ this ->delegate ->reverse ($ latitude , $ longitude );
51
+ $ this ->stopwatch ->stop ('reverse ' );
46
52
47
- return $ result ;
53
+ return $ result ;
54
+ }
55
+
56
+ /**
57
+ * {@inheritDoc}
58
+ */
59
+ public function getLimit ()
60
+ {
61
+ return $ this ->delegate ->getLimit ();
62
+ }
63
+
64
+ /**
65
+ * {@inheritDoc}
66
+ */
67
+ public function limit ($ limit )
68
+ {
69
+ return $ this ->delegate ->limit ($ limit );
48
70
}
49
71
50
72
public function __call ($ method , $ args )
0 commit comments