Docs Goabase

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

Methods

displayForecast()

Capsulate into div flex

public displayForecast() : string
Tags
throws
Exception
Return values
string

getWeatherInfo()

public getWeatherInfo([string $jsData = '' ]) : string
Parameters
$jsData : string = ''
Tags
throws
Exception
Return values
string

cntHoursByDate()

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
throws
Exception
Return values
string

getForecastLast()

private getForecastLast() : string
Return values
string

getForecastLoop()

private getForecastLoop() : string
Return values
string

getMinMaxTemperaturesByDate()

private getMinMaxTemperaturesByDate() : array<string|int, array<string|int, mixed>>
Return values
array<string|int, array<string|int, mixed>>

getWeatherData()

private getWeatherData() : object
Return values
object

getWeatherText()

private getWeatherText([string $iconKey = 'night-cloudy-gusts' ]) : string
Parameters
$iconKey : string = 'night-cloudy-gusts'
Tags
throws
Exception
Return values
string

        
On this page

Search results