1 | <?php |
||
24 | class StatefulGeocoder implements Geocoder, LocaleAwareGeocoder |
||
25 | { |
||
26 | /** |
||
27 | * @var string |
||
28 | */ |
||
29 | private $locale; |
||
30 | |||
31 | /** |
||
32 | * @var Bounds |
||
33 | */ |
||
34 | private $bounds; |
||
35 | |||
36 | /** |
||
37 | * @var int |
||
38 | */ |
||
39 | private $limit; |
||
40 | |||
41 | /** |
||
42 | * @var Provider |
||
43 | */ |
||
44 | private $provider; |
||
45 | |||
46 | /** |
||
47 | * @param Provider $provider |
||
48 | * @param string $locale |
||
49 | */ |
||
50 | public function __construct(Provider $provider, string $locale = null) |
||
56 | |||
57 | /** |
||
58 | * {@inheritdoc} |
||
59 | */ |
||
60 | public function geocode(string $value): Collection |
||
75 | |||
76 | /** |
||
77 | * {@inheritdoc} |
||
78 | */ |
||
79 | public function reverse(float $latitude, float $longitude): Collection |
||
90 | |||
91 | /** |
||
92 | * {@inheritdoc} |
||
93 | */ |
||
94 | public function geocodeQuery(GeocodeQuery $query): Collection |
||
108 | |||
109 | /** |
||
110 | * {@inheritdoc} |
||
111 | */ |
||
112 | public function reverseQuery(ReverseQuery $query): Collection |
||
121 | |||
122 | /** |
||
123 | * @param string $locale |
||
124 | * |
||
125 | * @return StatefulGeocoder |
||
126 | */ |
||
127 | public function setLocale(string $locale): self |
||
133 | |||
134 | /** |
||
135 | * @param Bounds $bounds |
||
136 | * |
||
137 | * @return StatefulGeocoder |
||
138 | */ |
||
139 | public function setBounds(Bounds $bounds): self |
||
145 | |||
146 | /** |
||
147 | * @param int $limit |
||
148 | * |
||
149 | * @return StatefulGeocoder |
||
150 | */ |
||
151 | public function setLimit(int $limit): self |
||
157 | |||
158 | /** |
||
159 | * {@inheritdoc} |
||
160 | */ |
||
161 | public function getName(): string |
||
165 | } |
||
166 |
An attempt at access to an undefined property has been detected. This may either be a typographical error or the property has been renamed but there are still references to its old name.
If you really want to allow access to undefined properties, you can define magic methods to allow access. See the php core documentation on Overloading.