WeatherData
in package
Table of Contents
Properties
- $forecastData : array<string|int, mixed>
- $httpClient : mixed
- $latitude : float
- $longitude : float
- $town : string
- $weatherData : mixed
Methods
- __construct() : mixed
- displayForecast() : string
- Capsulate into div flex
- getWeatherInfo() : string
- cntHoursByDate() : array<string|int, array<string|int, mixed>>
- getDataByHour() : array<string|int, mixed>
- Data of an given hour
- getForecast() : array<string|int, Weather>
- getForecastFirst() : string
- getForecastLast() : string
- getForecastLoop() : string
- getMinMaxTemperaturesByDate() : array<string|int, array<string|int, mixed>>
- getWeatherData() : object
- getWeatherText() : string
Properties
$forecastData
private
array<string|int, mixed>
$forecastData
$httpClient
private
static mixed
$httpClient
$latitude
private
float
$latitude
$longitude
private
float
$longitude
$town
private
string
$town
$weatherData
private
static mixed
$weatherData
Methods
__construct()
public
__construct() : mixed
displayForecast()
Capsulate into div flex
public
displayForecast() : string
Tags
Return values
stringgetWeatherInfo()
public
getWeatherInfo([string $jsData = '' ]) : string
Parameters
- $jsData : string = ''
Tags
Return values
stringcntHoursByDate()
private
cntHoursByDate() : array<string|int, array<string|int, mixed>>
Return values
array<string|int, array<string|int, mixed>>getDataByHour()
Data of an given hour
private
getDataByHour(string $hour) : array<string|int, mixed>
Parameters
- $hour : string
Return values
array<string|int, mixed>getForecast()
private
getForecast() : array<string|int, Weather>
Return values
array<string|int, Weather>getForecastFirst()
private
getForecastFirst() : string
Tags
Return values
stringgetForecastLast()
private
getForecastLast() : string
Return values
stringgetForecastLoop()
private
getForecastLoop() : string
Return values
stringgetMinMaxTemperaturesByDate()
private
getMinMaxTemperaturesByDate() : array<string|int, array<string|int, mixed>>
Return values
array<string|int, array<string|int, mixed>>getWeatherData()
private
getWeatherData() : object
Return values
objectgetWeatherText()
private
getWeatherText([string $iconKey = 'night-cloudy-gusts' ]) : string
Parameters
- $iconKey : string = 'night-cloudy-gusts'