@@ -89,6 +89,9 @@ |
||
89 | 89 | return $this->requestUrl; |
90 | 90 | } |
91 | 91 | |
92 | + /** |
|
93 | + * @param string $apiUrl |
|
94 | + */ |
|
92 | 95 | private function download($apiUrl /* ... params */) |
93 | 96 | { |
94 | 97 | $args = func_get_args(); |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | } |
117 | 117 | |
118 | 118 | /** |
119 | - * @param string|DateTime $str |
|
119 | + * @param string $str |
|
120 | 120 | * @return self |
121 | 121 | */ |
122 | 122 | public function setDate($str) |
@@ -173,6 +173,9 @@ discard block |
||
173 | 173 | */ |
174 | 174 | abstract protected function getExpectedProperty(); |
175 | 175 | |
176 | + /** |
|
177 | + * @return string |
|
178 | + */ |
|
176 | 179 | abstract public function getStartXmlElement(); |
177 | 180 | |
178 | 181 | private function getProperties() |
@@ -20,6 +20,9 @@ |
||
20 | 20 | /** @var string */ |
21 | 21 | private $temp; |
22 | 22 | |
23 | + /** |
|
24 | + * @param string $temp |
|
25 | + */ |
|
23 | 26 | public function __construct($temp) |
24 | 27 | { |
25 | 28 | $this->temp = $temp; |
@@ -25,6 +25,9 @@ discard block |
||
25 | 25 | /** @var string */ |
26 | 26 | private $tempDir; |
27 | 27 | |
28 | + /** |
|
29 | + * @param string $tempDir |
|
30 | + */ |
|
28 | 31 | public function __construct($tempDir) |
29 | 32 | { |
30 | 33 | $this->tempDir = $tempDir; |
@@ -90,7 +93,7 @@ discard block |
||
90 | 93 | |
91 | 94 | /** |
92 | 95 | * @param $token |
93 | - * @param $fallback |
|
96 | + * @param \Closure $fallback |
|
94 | 97 | * @param string $action |
95 | 98 | * @return GuzzleHttp\Psr7\Stream |
96 | 99 | * @throws Fio\QueueLimitException |
@@ -142,6 +145,9 @@ discard block |
||
142 | 145 | } |
143 | 146 | } |
144 | 147 | |
148 | + /** |
|
149 | + * @param string $filename |
|
150 | + */ |
|
145 | 151 | private static function sleep($filename) |
146 | 152 | { |
147 | 153 | $criticalTime = time() - filemtime($filename); |
@@ -164,6 +170,9 @@ discard block |
||
164 | 170 | return self::$tokens[$key]; |
165 | 171 | } |
166 | 172 | |
173 | + /** |
|
174 | + * @param string $filename |
|
175 | + */ |
|
167 | 176 | private static function safeProtocol($filename) |
168 | 177 | { |
169 | 178 | return Utils\SafeStream::PROTOCOL . '://' . $filename; |