\Gomoob\Pushwoosh\Model\ResponseGetNearestZoneResponseResponse

Class which represents Pushwoosh '/getNearestZone' response response.

An instance of this objects represent the nearest zone to the position provided in the '/getNearestZone' request.

Summary

Methods
Properties
Constants
getDistance()
getLat()
getLng()
getName()
getRange()
setDistance()
setLat()
setLng()
setName()
setRange()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$distance
$lat
$lng
$name
$range
N/A

Properties

$distance

$distance : int

The distance of the device from the nearest zone in meters.

Type

int

$lat

$lat : float

The latitude of the nearest zone.

Type

float

$lng

$lng : float

The longitude of the nearest zone.

Type

float

$name

$name : string

The name of the nearest zone.

Type

string

$range

$range : int

The range of the nearest zone in meters.

Type

int

Methods

getDistance()

getDistance() : int

Gets the distance of the device from the nearest zone in meters.

Returns

int —

distance of the device from the nearest zone in meters.

getLat()

getLat() : float

Gets the latitude of the nearest zone.

Returns

float —

the latitude of the nearest zone.

getLng()

getLng() : float

Gets the longitude of the nearest zone.

Returns

float —

the longitude of the nearest zone.

getName()

getName() : string

Gets the name of the nearest zone.

Returns

string —

the name of the nearest zone.

getRange()

getRange() : int

Gets the range of the nearest zone in meters.

Returns

int —

the range of the nearest zone in meters.

setDistance()

setDistance(int $distance)

Sets the distance of the device from the nearest zone in meters.

Parameters

int $distance

the distance of the device from the nearest zone in meters.

setLat()

setLat(float $lat)

Sets the latitude of the nearest zone.

Parameters

float $lat

the latitude of the nearest zone.

setLng()

setLng(float $lng)

Sets the longitude of the nearest zone.

Parameters

float $lng

the longitude of the nearest zone.

setName()

setName(string $name)

Sets the name of the nearest zone.

Parameters

string $name

the name of the nearest zone.

setRange()

setRange(int $range)

Sets the range of the nearest zone in meters.

Parameters

int $range

the range of the nearest zone in meters.