1 | <?php |
||
25 | class WeatherHistory implements \Iterator |
||
26 | { |
||
27 | /** |
||
28 | * The city object. IMPORTANT: Not all values will be set |
||
29 | * |
||
30 | * @var Util\City |
||
31 | */ |
||
32 | public $city; |
||
33 | |||
34 | /** |
||
35 | * The time needed to calculate the request data. |
||
36 | * |
||
37 | * @var float |
||
38 | */ |
||
39 | public $calctime; |
||
40 | |||
41 | /** |
||
42 | * An array of {@link WeatherHistory} objects. |
||
43 | * |
||
44 | * @var array |
||
45 | * |
||
46 | * @see WeatherForecast The WeatherForecast class. |
||
47 | */ |
||
48 | private $histories; |
||
49 | |||
50 | /** |
||
51 | * @internal |
||
52 | */ |
||
53 | private $position = 0; |
||
54 | |||
55 | public function __construct($weatherHistory, $query) |
||
78 | |||
79 | /** |
||
80 | * @internal |
||
81 | */ |
||
82 | public function rewind() |
||
86 | |||
87 | /** |
||
88 | * @internal |
||
89 | */ |
||
90 | public function current() |
||
94 | |||
95 | /** |
||
96 | * @internal |
||
97 | */ |
||
98 | public function key() |
||
102 | |||
103 | /** |
||
104 | * @internal |
||
105 | */ |
||
106 | public function next() |
||
110 | |||
111 | /** |
||
112 | * @internal |
||
113 | */ |
||
114 | public function valid() |
||
118 | } |
||
119 |