@@ -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; |
@@ -26,6 +26,9 @@ discard block |
||
| 26 | 26 | /** @var string */ |
| 27 | 27 | private $tempDir; |
| 28 | 28 | |
| 29 | + /** |
|
| 30 | + * @param string $tempDir |
|
| 31 | + */ |
|
| 29 | 32 | public function __construct($tempDir) |
| 30 | 33 | { |
| 31 | 34 | $this->tempDir = $tempDir; |
@@ -60,7 +63,7 @@ discard block |
||
| 60 | 63 | /** |
| 61 | 64 | * @param $token |
| 62 | 65 | * @param string $url |
| 63 | - * @return mixed|string |
|
| 66 | + * @return \Psr\Http\Message\StreamInterface |
|
| 64 | 67 | * @throws Fio\QueueLimitException |
| 65 | 68 | * @throws Fio\ServiceUnavailableException |
| 66 | 69 | */ |
@@ -93,7 +96,7 @@ discard block |
||
| 93 | 96 | |
| 94 | 97 | /** |
| 95 | 98 | * @param $token |
| 96 | - * @param $fallback |
|
| 99 | + * @param \Closure $fallback |
|
| 97 | 100 | * @return ResponseInterface |
| 98 | 101 | * @throws Fio\QueueLimitException |
| 99 | 102 | * @throws Fio\ServiceUnavailableException |
@@ -151,6 +154,9 @@ discard block |
||
| 151 | 154 | } |
| 152 | 155 | } |
| 153 | 156 | |
| 157 | + /** |
|
| 158 | + * @param string $filename |
|
| 159 | + */ |
|
| 154 | 160 | private static function sleep($filename) |
| 155 | 161 | { |
| 156 | 162 | $criticalTime = time() - filemtime($filename); |
@@ -173,13 +179,16 @@ discard block |
||
| 173 | 179 | return self::$tokens[$key]; |
| 174 | 180 | } |
| 175 | 181 | |
| 182 | + /** |
|
| 183 | + * @param string $filename |
|
| 184 | + */ |
|
| 176 | 185 | private static function safeProtocol($filename) |
| 177 | 186 | { |
| 178 | 187 | return Utils\SafeStream::PROTOCOL . '://' . $filename; |
| 179 | 188 | } |
| 180 | 189 | |
| 181 | 190 | /** |
| 182 | - * @param ResponseInterface|GuzzleHttp\Psr7\Stream $response |
|
| 191 | + * @param ResponseInterface $response |
|
| 183 | 192 | * @return Pay\XMLResponse |
| 184 | 193 | */ |
| 185 | 194 | private static function createXmlResponse($response) |