AbstractProvider
abstract class AbstractProvider
Properties
protected Client | $httpClient | The cache lifetime. |
|
protected float|int | $cacheLifetime | The cache lifetime. |
|
protected | $logs |
Methods
string
getName()
Returns the provider name.
Collection
Collection
Distance|null
Client
getHttpClient()
No description
$this
forgetCache()
Forget the repository cache.
getCacheKey()
No description
$this
setCacheLifetime(float|int $cacheLifetime)
Set the repository cache lifetime.
float|int
getCacheLifetime()
Get the repository cache lifetime.
Repository
getCacheDriver()
No description
log($message)
No description
resetLogs()
No description
getLogs()
No description
Details
at line 33
abstract string
getName()
Returns the provider name.
at line 41
abstract Collection
geocodeQuery(GeoQueryInterface $query)
Handle the geocoder request.
at line 49
abstract Collection
reverseQuery(GeoQueryInterface $query)
Handle the reverse geocoding request.
at line 51
abstract Distance|null
distance(DistanceInterface $distance)
No description
at line 56
protected Client
getHttpClient()
No description
at line 70
$this
forgetCache()
Forget the repository cache.
at line 80
getCacheKey()
No description
at line 92
$this
setCacheLifetime(float|int $cacheLifetime)
Set the repository cache lifetime.
at line 104
float|int
getCacheLifetime()
Get the repository cache lifetime.
at line 111
protected
cacheCallback($cacheKey, Closure $closure)
No description
at line 121
protected Repository
getCacheDriver()
No description
at line 130
log($message)
No description
at line 141
AbstractProvider
resetLogs()
No description
at line 148
getLogs()
No description