@@ -59,11 +59,17 @@ discard block |
||
59 | 59 | return $response->withBody(Psr7\stream_for($content)); |
60 | 60 | } |
61 | 61 | |
62 | + /** |
|
63 | + * @param integer $code |
|
64 | + */ |
|
62 | 65 | public function returnErrorForNextRequest($code) |
63 | 66 | { |
64 | 67 | $this->errorWithStatusCode = $code; |
65 | 68 | } |
66 | 69 | |
70 | + /** |
|
71 | + * @param string $format |
|
72 | + */ |
|
67 | 73 | private function currentWeather($format) |
68 | 74 | { |
69 | 75 | if ($format == 'xml') { |
@@ -71,6 +77,9 @@ discard block |
||
71 | 77 | } |
72 | 78 | } |
73 | 79 | |
80 | + /** |
|
81 | + * @param string $format |
|
82 | + */ |
|
74 | 83 | private function forecast($format) |
75 | 84 | { |
76 | 85 | if ($format == 'xml') { |
@@ -78,6 +87,9 @@ discard block |
||
78 | 87 | } |
79 | 88 | } |
80 | 89 | |
90 | + /** |
|
91 | + * @param string $format |
|
92 | + */ |
|
81 | 93 | private function group($format) |
82 | 94 | { |
83 | 95 | if ($format == 'json') { |