Свойство | Тип | Описание | |
---|---|---|---|
$city | Cmfcmf\OpenWeatherMap\Util\City | A city object. | |
$lastUpdate | DateTime | The time of the last update of this weather data. | |
$sun | Cmfcmf\OpenWeatherMap\Util\Sun | A sun object |
Метод | Описание | |
---|---|---|
__construct ( $xml, string $units, integer $days ) | Create a new Forecast object. | |
current ( ) | ||
key ( ) | ||
next ( ) | ||
rewind ( ) | ||
valid ( ) |
public __construct ( $xml, string $units, integer $days ) | ||
$xml | ||
$units | string | |
$days | integer | How many days of forecast to receive. |
public City,Cmfcmf\OpenWeatherMap\Util $city | ||
Результат | Cmfcmf\OpenWeatherMap\Util\City |
public DateTime $lastUpdate | ||
Результат | DateTime |