1 | <?php |
||
31 | class CurrentWeather |
||
32 | { |
||
33 | /** |
||
34 | * The city object. |
||
35 | * |
||
36 | * @var Util\City |
||
37 | */ |
||
38 | public $city; |
||
39 | |||
40 | /** |
||
41 | * The temperature object. |
||
42 | * |
||
43 | * @var Util\Temperature |
||
44 | */ |
||
45 | public $temperature; |
||
46 | |||
47 | /** |
||
48 | * @var Util\Unit |
||
49 | */ |
||
50 | public $humidity; |
||
51 | |||
52 | /** |
||
53 | * @var Util\Unit |
||
54 | */ |
||
55 | public $pressure; |
||
56 | |||
57 | /** |
||
58 | * @var Util\Wind |
||
59 | */ |
||
60 | public $wind; |
||
61 | |||
62 | /** |
||
63 | * @var Util\Unit |
||
64 | */ |
||
65 | public $clouds; |
||
66 | |||
67 | /** |
||
68 | * @var Util\Unit |
||
69 | */ |
||
70 | public $precipitation; |
||
71 | |||
72 | /** |
||
73 | * @var Util\Sun |
||
74 | */ |
||
75 | public $sun; |
||
76 | |||
77 | /** |
||
78 | * @var Util\Weather |
||
79 | */ |
||
80 | public $weather; |
||
81 | |||
82 | /** |
||
83 | * @var \DateTime |
||
84 | */ |
||
85 | public $lastUpdate; |
||
86 | |||
87 | /** |
||
88 | * Create a new weather object. |
||
89 | * |
||
90 | * @param \SimpleXMLElement $xml |
||
91 | * @param string $units |
||
92 | * |
||
93 | * @internal |
||
94 | */ |
||
95 | public function __construct(\SimpleXMLElement $xml, $units) |
||
117 | } |
||
118 |