1 | <?php |
||
23 | class City |
||
24 | { |
||
25 | /** |
||
26 | * @var int The city id. |
||
27 | */ |
||
28 | public $id; |
||
29 | |||
30 | /** |
||
31 | * @var string The name of the city. |
||
32 | */ |
||
33 | public $name; |
||
34 | |||
35 | /** |
||
36 | * @var float The longitude of the city. |
||
37 | */ |
||
38 | public $lon; |
||
39 | |||
40 | /** |
||
41 | * @var float The latitude of the city. |
||
42 | */ |
||
43 | public $lat; |
||
44 | |||
45 | /** |
||
46 | * @var string The abbreviation of the country the city is located in. |
||
47 | */ |
||
48 | public $country; |
||
49 | |||
50 | /** |
||
51 | * @var int The city's population |
||
52 | */ |
||
53 | public $population; |
||
54 | |||
55 | /** |
||
56 | * Create a new city object. |
||
57 | * |
||
58 | * @param int $id The city id. |
||
59 | * @param string $name The name of the city. |
||
60 | * @param float $lon The longitude of the city. |
||
61 | * @param float $lat The latitude of the city. |
||
62 | * @param string $country The abbreviation of the country the city is located in |
||
63 | * @param int $population The city's population. |
||
64 | * |
||
65 | * @internal |
||
66 | */ |
||
67 | 5 | public function __construct($id, $name = null, $lon = null, $lat = null, $country = null, $population = null) |
|
76 | } |
||
77 |