Cmfcmf\OpenWeatherMap\CurrentWeatherGroup::__construct PHP Метод

__construct() публичный Метод

Create a new current weathers group object.
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);
        }
    }