PHP Class Stevebauman\Location\Drivers\Driver

Afficher le fichier Open project: stevebauman/location Class Usage Examples

Protected Properties

Свойство Type Description
$fallback Driver The fallback driver.

Méthodes publiques

Méthode Description
fallback ( Driver $handler ) Append a fallback driver to the end of the chain.
get ( string $ip ) : Position | boolean Handle the driver request.

Méthodes protégées

Méthode Description
hydrate ( Position $position, Illuminate\Support\Fluent $location ) : Position Hydrates the position with the given location instance using the drivers array map.
process ( string $ip ) : Illuminate\Support\Fluent | boolean Process the specified driver.
url ( ) : string Returns the URL to use for querying the current driver.

Method Details

fallback() public méthode

Append a fallback driver to the end of the chain.
public fallback ( Driver $handler )
$handler Driver

get() public méthode

Handle the driver request.
public get ( string $ip ) : Position | boolean
$ip string
Résultat Stevebauman\Location\Position | boolean

hydrate() abstract protected méthode

Hydrates the position with the given location instance using the drivers array map.
abstract protected hydrate ( Position $position, Illuminate\Support\Fluent $location ) : Position
$position Stevebauman\Location\Position
$location Illuminate\Support\Fluent
Résultat Stevebauman\Location\Position

process() abstract protected méthode

Process the specified driver.
abstract protected process ( string $ip ) : Illuminate\Support\Fluent | boolean
$ip string
Résultat Illuminate\Support\Fluent | boolean

url() abstract protected méthode

Returns the URL to use for querying the current driver.
abstract protected url ( ) : string
Résultat string

Property Details

$fallback protected_oe property

The fallback driver.
protected Driver,Stevebauman\Location\Drivers $fallback
Résultat Driver