class Storm

Storm represents information about registered lightnings with a specified radius of monitoring covered by the specified location.

Storm has properties describing: - lightnings (number of cloud-end-ground lightning in specified radius for a selected location) - distance (distance to the nearest registered lightning in km) - direction (direction to the nearest lightning [E, E, N, NW, W, SW, S, SE]) - period (number of minutes of time period containing the data [10, 15, 20 minutes]) - radius (radius covered by Point in km)

Methods

__construct(int $lightnings, float $distance, string $direction, int $period)

New Storm.

int
lightnings()

Get the number of cloud-end-ground lightning in specified radius for a selected location.

float
distance()

Get the distance to the nearest registered lightning.

string
direction()

Get direction to the nearest lightning (E, E, N, NW, W, SW, S, SE).

int
period()

Get the number of minutes of time containing the data (10, 15, 20 minutes).

Details

at line 56
__construct(int $lightnings, float $distance, string $direction, int $period)

New Storm.

Parameters

int $lightnings number of cloud-end-ground lightning in specified radius for a selected location
float $distance distance (km) to the nearest registered lightning
string $direction direction to the nearest lightning (E, E, N, NW, W, SW, S, SE)
int $period number of minutes of time containing the data (10, 15, 20 minutes)

at line 69
int lightnings()

Get the number of cloud-end-ground lightning in specified radius for a selected location.

Return Value

int number of cloud-end-ground lightning in specified radius for a selected location

at line 79
float distance()

Get the distance to the nearest registered lightning.

Return Value

float distance to the nearest registered lightning

at line 89
string direction()

Get direction to the nearest lightning (E, E, N, NW, W, SW, S, SE).

Return Value

string direction to the nearest lightning

at line 99
int period()

Get the number of minutes of time containing the data (10, 15, 20 minutes).

Return Value

int number of minutes of time containing the data