Stevebauman\Location\Drivers\FreeGeoIp::hydrate PHP Метод

hydrate() защищенный Метод

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->country_code;
        $position->regionName = $location->region_name;
        $position->cityName = $location->city;
        $position->zipCode = $location->zip_code;
        $position->latitude = (string) $location->latitude;
        $position->longitude = (string) $location->longitude;
        $position->metroCode = (string) $location->metro_code;
        $position->areaCode = $location->area_code;
        return $position;
    }