DoDomuDojade Documentation

GetDisplayWeatherUseCase
in package

Read onlyYes

Provides weather data formatted for display page

Table of Contents

Properties

$cacheTtlSeconds  : int
$logger  : LoggerInterface
$weatherRepository  : WeatherRepositoryInterface
$weatherService  : WeatherService

Methods

__construct()  : mixed
execute()  : array<string|int, string>|null
formatDisplay()  : array<string|int, mixed>|null
isCacheFresh()  : bool

Properties

Methods

execute()

public execute() : array<string|int, string>|null
Return values
array<string|int, string>|null

formatDisplay()

private formatDisplay(array<string|int, mixed> $weatherData) : array<string|int, mixed>|null
Parameters
$weatherData : array<string|int, mixed>
Return values
array<string|int, mixed>|null

isCacheFresh()

private isCacheFresh(DateTimeImmutable|null $fetchedOn) : bool
Parameters
$fetchedOn : DateTimeImmutable|null
Return values
bool

        
On this page

Search results