diff --git a/src/Forecast/ForecastPeriod.php b/src/Forecast/ForecastPeriod.php index 13a79c6..28e4113 100644 --- a/src/Forecast/ForecastPeriod.php +++ b/src/Forecast/ForecastPeriod.php @@ -84,6 +84,11 @@ final class ForecastPeriod { */ protected ?string $winds = NULL; + /** + * The fire danger value. + */ + protected ?string $fireDanger = NULL; + /** * Gets the start time. */ @@ -311,4 +316,19 @@ public function setWinds(string $winds): ForecastPeriod { return $this; } + /** + * Gets the fire danger value. + */ + public function getFireDanger(): ?string { + return $this->fireDanger; + } + + /** + * Sets the fire danger value. + */ + public function setFireDanger(?string $fireDanger): ForecastPeriod { + $this->fireDanger = $fireDanger; + return $this; + } + } diff --git a/src/Forecast/Serializer/ForecastPeriodNormalizer.php b/src/Forecast/Serializer/ForecastPeriodNormalizer.php index 70dc9cc..17845cd 100644 --- a/src/Forecast/Serializer/ForecastPeriodNormalizer.php +++ b/src/Forecast/Serializer/ForecastPeriodNormalizer.php @@ -119,6 +119,10 @@ public function setTextValue(array $text, ForecastPeriod $period): void { $period->setWinds($text['#']); break; + case 'fire_danger': + $period->setFireDanger($text['#']); + break; + } }