1 | <?php |
||
7 | class Weather |
||
8 | { |
||
9 | /** |
||
10 | * Weather description. |
||
11 | * @var string |
||
12 | */ |
||
13 | public $description; |
||
14 | |||
15 | /** |
||
16 | * Weather icon. |
||
17 | * @var string |
||
18 | */ |
||
19 | public $icon; |
||
20 | |||
21 | /** |
||
22 | * Create Weather object. |
||
23 | * @param string $description Weather description. |
||
24 | * @param string $icon Weather icon. |
||
25 | */ |
||
26 | 1 | public function __construct(string $description, string $icon = null) |
|
31 | } |
||
32 |