-
Notifications
You must be signed in to change notification settings - Fork 7
DTO: Alert details
Forecasts | Measurements | Miscellaneous |
---|---|---|
Alert | Cloud cover | Area |
Alert details | Direction | Coordinate |
Day | Humidity | Message |
Hour | Precipitation | Moon |
Minute | Pressure | Provider |
Period | Temperature | Source |
Visibility | Sun times | |
Wind | Time period |
Contains more detailed information and a summary about a specific weather alert.
- Alert period
- Area
- Area ID
- Area name
- Certainty
- Country code
- Description
- Embed URL
- Event period
- ID
- Importance
- Issued timestamp
- Messages
- Precedence
- Recommended actions
- Severity
- Source
- Urgency
The period where weather alert goes into effect and when it expires.
getAlertPeriod(): \Rugaard\WeatherKit\DTO\TimePeriod
Returns an object of type Rugaard\WeatherKit\DTO\TimePeriod
.
The geographic region the weather alert applies to.
getArea(): \Rugaard\WeatherKit\DTO\Area
Returns an object of type Rugaard\WeatherKit\DTO\Area
.
The official designation of the affected area.
getAreaId(): string
Returns a string
.
A human-readable name of the affected area.
getAreaName(): string
Returns a string
.
How likely the event is to occur.
getCertainty(): \Rugaard\WeatherKit\Enums\Certainty
Returns an enum of type Rugaard\WeatherKit\Enums\Certainty
.
The ISO 3166-1 alpha-2 country code of the reporting country.
getCountryCode(): string
Returns a string
.
A human-readable description of the event.
getDescription(): string
Returns a string
.
A URL to a page containing detailed information about the event.
getEmbedUrl(): string
Returns a string
.
The period where the underlying weather event is projected to start and end.
getEventPeriod(): \Rugaard\WeatherKit\DTO\TimePeriod
Returns an object of type Rugaard\WeatherKit\DTO\TimePeriod
.
A unique identifier (UUID) of the event.
getId(): string
Returns a string
.
Importance level of the event.
getImportance(): \Rugaard\WeatherKit\Enums\Importance
Returns an enum of type Rugaard\WeatherKit\Enums\Importance
.
The time the event was issued by the reporting agency.
getIssuedTime(): DateTime
Returns a DateTime
object.
A Collection
of official text messages describing the event from the agency.
getMessages(): \Illuminate\Support\Collection
Returns an object of type Illuminate\Support\Collection
, where each key returns an object of type Rugaard\WeatherKit\DTO\Message
.
Whether there is precedence for the event or not.
getPrecedence(): string
Returns a boolean
.
An array of recommended actions from the reporting agency.
getRecommendedActions(): \Illuminate\Support\Collection
Returns an object of type Illuminate\Support\Collection
, where each key returns an enum of type Rugaard\WeatherKit\Enums\Action
.
The level of danger to life and property
getSeverity(): \Rugaard\WeatherKit\Enums\Severity
Returns an enum of type Rugaard\WeatherKit\Enums\Severity
.
The name of the reporting agency.
getSource(): string
Returns a string
.
An indication of urgency of action from the reporting agency.
getSeverity(): \Rugaard\WeatherKit\Enums\Urgency
Returns an enum of type Rugaard\WeatherKit\Enums\Urgency
.
Convert the entire DTO
to an array
.
toArray(): array
Returns an array
.