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
geocodeQuery(GeoQueryInterface $query)

Handle the geocoder request.

Collection
reverseQuery(GeoQueryInterface $query)

Handle the reverse geocoding request.

Distance|null
distance(DistanceInterface $distance)

No description

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.

cacheCallback($cacheKey, Closure $closure)

No description

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.

Return Value

string

at line 41
abstract Collection geocodeQuery(GeoQueryInterface $query)

Handle the geocoder request.

Parameters

GeoQueryInterface $query

Return Value

Collection

at line 49
abstract Collection reverseQuery(GeoQueryInterface $query)

Handle the reverse geocoding request.

Parameters

GeoQueryInterface $query

Return Value

Collection

at line 51
abstract Distance|null distance(DistanceInterface $distance)

No description

Parameters

DistanceInterface $distance

Return Value

Distance|null

at line 56
protected Client getHttpClient()

No description

Return Value

Client

at line 70
$this forgetCache()

Forget the repository cache.

Return Value

$this

at line 80
getCacheKey()

No description

at line 92
$this setCacheLifetime(float|int $cacheLifetime)

Set the repository cache lifetime.

Parameters

float|int $cacheLifetime

Return Value

$this

at line 104
float|int getCacheLifetime()

Get the repository cache lifetime.

Return Value

float|int

at line 111
protected cacheCallback($cacheKey, Closure $closure)

No description

Parameters

$cacheKey
Closure $closure

at line 121
protected Repository getCacheDriver()

No description

Return Value

Repository

at line 130
log($message)

No description

Parameters

$message

at line 141
AbstractProvider resetLogs()

No description

Return Value

AbstractProvider $this

at line 148
getLogs()

No description