public __construct ( stdClass $json, string $units ) | ||
$json | stdClass | The current weathers group json. |
$units | string | The units used. |
public function __construct(\stdClass $json, $units)
{
foreach ($json->list as $currentWeather) {
$this->currentWeathers[] = new CurrentWeather($currentWeather, $units);
}
}