Skip to content

Commit

Permalink
Merging PR #13 into this branch.
Browse files Browse the repository at this point in the history
  • Loading branch information
mohit-rocks committed Feb 1, 2024
1 parent 33a4fd4 commit 49a3a2a
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/Forecast/ForecastPeriod.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@ final class ForecastPeriod {
*/
protected ?string $winds = NULL;

/**
* The fire danger value.
*/
protected ?string $fireDanger = NULL;

/**
* Gets the start time.
*/
Expand Down Expand Up @@ -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;
}

}
1 change: 1 addition & 0 deletions src/Forecast/Serializer/ForecastPeriodNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ public function setTextValue(array $text, ForecastPeriod $period): void {
'forecast_swell1' => $period->setSwell($value),
'forecast_weather' => $period->setWeather($value),
'forecast_winds' => $period->setWinds($value),
'fire_danger' => $period->setFireDanger($text),

Check failure on line 92 in src/Forecast/Serializer/ForecastPeriodNormalizer.php

View workflow job for this annotation

GitHub Actions / build (8.1)

Parameter #1 $fireDanger of method BomWeather\Forecast\ForecastPeriod::setFireDanger() expects string|null, array given.

Check failure on line 92 in src/Forecast/Serializer/ForecastPeriodNormalizer.php

View workflow job for this annotation

GitHub Actions / build (8.3)

Parameter #1 $fireDanger of method BomWeather\Forecast\ForecastPeriod::setFireDanger() expects string|null, array given.

Check failure on line 92 in src/Forecast/Serializer/ForecastPeriodNormalizer.php

View workflow job for this annotation

GitHub Actions / build (--prefer-lowest, 8.1)

Parameter #1 $fireDanger of method BomWeather\Forecast\ForecastPeriod::setFireDanger() expects string|null, array given.

Check failure on line 92 in src/Forecast/Serializer/ForecastPeriodNormalizer.php

View workflow job for this annotation

GitHub Actions / build (--prefer-lowest, 8.2)

Parameter #1 $fireDanger of method BomWeather\Forecast\ForecastPeriod::setFireDanger() expects string|null, array given.

Check failure on line 92 in src/Forecast/Serializer/ForecastPeriodNormalizer.php

View workflow job for this annotation

GitHub Actions / build (--prefer-lowest, 8.3)

Parameter #1 $fireDanger of method BomWeather\Forecast\ForecastPeriod::setFireDanger() expects string|null, array given.
default => '',
};
}
Expand Down

0 comments on commit 49a3a2a

Please sign in to comment.