Stevebauman\Location\Drivers\GeoPlugin::hydrate PHP Method

hydrate() protected method

protected hydrate ( Position $position, Illuminate\Support\Fluent $location )
$position Stevebauman\Location\Position
$location Illuminate\Support\Fluent
    protected function hydrate(Position $position, Fluent $location)
    {
        $position->countryCode = $location->geoplugin_countryCode;
        $position->countryName = $location->geoplugin_countryName;
        $position->regionName = $location->geoplugin_regionName;
        $position->regionCode = $location->geoplugin_regionCode;
        $position->cityName = $location->geoplugin_city;
        $position->latitude = $location->geoplugin_latitude;
        $position->longitude = $location->geoplugin_longitude;
        $position->areaCode = $location->geoplugin_areaCode;
        return $position;
    }