@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | /** |
77 | 77 | * @param RequestInterface $request |
78 | 78 | * @param array $options |
79 | - * @param ResponseInterface|PromiseInterface $response |
|
79 | + * @param ResponseInterface $response |
|
80 | 80 | * |
81 | 81 | * @return ResponseInterface|PromiseInterface |
82 | 82 | */ |
@@ -118,6 +118,10 @@ discard block |
||
118 | 118 | return $promise; |
119 | 119 | } |
120 | 120 | |
121 | + /** |
|
122 | + * @param string $uri |
|
123 | + * @param integer $statusCode |
|
124 | + */ |
|
121 | 125 | private function withTracking(PromiseInterface $promise, $uri, $statusCode) |
122 | 126 | { |
123 | 127 | return $promise->then( |
@@ -2,8 +2,6 @@ |
||
2 | 2 | namespace GuzzleHttp; |
3 | 3 | |
4 | 4 | use GuzzleHttp\Promise\PromiseInterface; |
5 | -use GuzzleHttp\Promise\RejectedPromise; |
|
6 | -use GuzzleHttp\Psr7; |
|
7 | 5 | use Psr\Http\Message\RequestInterface; |
8 | 6 | use Psr\Http\Message\ResponseInterface; |
9 | 7 |
@@ -35,6 +35,9 @@ |
||
35 | 35 | '%40', '%21', '%24', '%26', '%27', '%28', '%29', '%2A', '%2B', '%2C', |
36 | 36 | '%3B', '%3D']; |
37 | 37 | |
38 | + /** |
|
39 | + * @param string $template |
|
40 | + */ |
|
38 | 41 | public function expand($template, array $variables) |
39 | 42 | { |
40 | 43 | if (false === strpos($template, '{')) { |
@@ -118,6 +118,9 @@ discard block |
||
118 | 118 | $this->settle(self::REJECTED, $reason); |
119 | 119 | } |
120 | 120 | |
121 | + /** |
|
122 | + * @param string $state |
|
123 | + */ |
|
121 | 124 | private function settle($state, $value) |
122 | 125 | { |
123 | 126 | if ($this->state !== self::PENDING) { |
@@ -164,11 +167,19 @@ discard block |
||
164 | 167 | } else { |
165 | 168 | // Resolve the handlers when the forwarded promise is resolved. |
166 | 169 | $value->then( |
170 | + |
|
171 | + /** |
|
172 | + * @param string $value |
|
173 | + */ |
|
167 | 174 | static function ($value) use ($handlers) { |
168 | 175 | foreach ($handlers as $handler) { |
169 | 176 | self::callHandler(1, $value, $handler); |
170 | 177 | } |
171 | 178 | }, |
179 | + |
|
180 | + /** |
|
181 | + * @param string $reason |
|
182 | + */ |
|
172 | 183 | static function ($reason) use ($handlers) { |
173 | 184 | foreach ($handlers as $handler) { |
174 | 185 | self::callHandler(2, $reason, $handler); |
@@ -148,6 +148,9 @@ |
||
148 | 148 | return isset($this->metadata[$key]) ? $this->metadata[$key] : null; |
149 | 149 | } |
150 | 150 | |
151 | + /** |
|
152 | + * @param integer $length |
|
153 | + */ |
|
151 | 154 | private function pump($length) |
152 | 155 | { |
153 | 156 | if ($this->source) { |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | } |
140 | 140 | |
141 | 141 | /** |
142 | - * @param mixed $param |
|
142 | + * @param string|null $param |
|
143 | 143 | * @return boolean |
144 | 144 | */ |
145 | 145 | private function isStringOrNull($param) |
@@ -148,7 +148,7 @@ discard block |
||
148 | 148 | } |
149 | 149 | |
150 | 150 | /** |
151 | - * @param mixed $param |
|
151 | + * @param string $param |
|
152 | 152 | * @return boolean |
153 | 153 | */ |
154 | 154 | private function isStringNotEmpty($param) |
@@ -179,6 +179,9 @@ |
||
179 | 179 | return $emptyPathUri; |
180 | 180 | } |
181 | 181 | |
182 | + /** |
|
183 | + * @return string |
|
184 | + */ |
|
182 | 185 | private static function getRelativePath(UriInterface $base, UriInterface $target) |
183 | 186 | { |
184 | 187 | $sourceSegments = explode('/', $base->getPath()); |
@@ -393,6 +393,8 @@ discard block |
||
393 | 393 | * @param string $expectedStatusCode Expected status code. |
394 | 394 | * @param Models\BlobServiceOptions $options Optional parameters. |
395 | 395 | * @param Models\AccessCondition $accessCondition Access conditions. |
396 | + * @param string|null $proposedLeaseId |
|
397 | + * @param integer|null $leaseDuration |
|
396 | 398 | * |
397 | 399 | * @return \GuzzleHttp\Promise\PromiseInterface |
398 | 400 | */ |
@@ -1493,7 +1495,7 @@ discard block |
||
1493 | 1495 | * @param string|resource|StreamInterface $content The content of the blob. |
1494 | 1496 | * @param Models\CreateBlobOptions $options The optional parameters. |
1495 | 1497 | * |
1496 | - * @return Models\PutBlobResult |
|
1498 | + * @return PromiseInterface |
|
1497 | 1499 | * |
1498 | 1500 | * @see http://msdn.microsoft.com/en-us/library/windowsazure/dd179451.aspx |
1499 | 1501 | */ |
@@ -4024,6 +4026,7 @@ discard block |
||
4024 | 4026 | * @param string $container name of the container |
4025 | 4027 | * @param string $blob name of the blob |
4026 | 4028 | * @param Models\BlobServiceOptions $options optional parameters |
4029 | + * @param BlobServiceOptions $breakPeriod |
|
4027 | 4030 | * |
4028 | 4031 | * @return \GuzzleHttp\Promise\PromiseInterface |
4029 | 4032 | * |
@@ -4056,7 +4059,7 @@ discard block |
||
4056 | 4059 | * Adds optional header to headers if set |
4057 | 4060 | * |
4058 | 4061 | * @param array $headers The array of request headers. |
4059 | - * @param Models\AccessCondition $accessCondition The access condition object. |
|
4062 | + * @param Models\AccessCondition $accessConditions The access condition object. |
|
4060 | 4063 | * |
4061 | 4064 | * @return array |
4062 | 4065 | */ |
@@ -4090,7 +4093,7 @@ discard block |
||
4090 | 4093 | * Adds optional header to headers if set |
4091 | 4094 | * |
4092 | 4095 | * @param array $headers The array of request headers. |
4093 | - * @param array $accessCondition The access condition object. |
|
4096 | + * @param array $accessConditions The access condition object. |
|
4094 | 4097 | * |
4095 | 4098 | * @return array |
4096 | 4099 | */ |
@@ -46,7 +46,6 @@ |
||
46 | 46 | use MicrosoftAzure\Storage\Blob\Models\BlobType; |
47 | 47 | use MicrosoftAzure\Storage\Blob\Models\Block; |
48 | 48 | use MicrosoftAzure\Storage\Blob\Models\CreateBlobOptions; |
49 | -use MicrosoftAzure\Storage\Blob\Models\BlobProperties; |
|
50 | 49 | use MicrosoftAzure\Storage\Blob\Models\GetBlobPropertiesOptions; |
51 | 50 | use MicrosoftAzure\Storage\Blob\Models\GetBlobPropertiesResult; |
52 | 51 | use MicrosoftAzure\Storage\Blob\Models\SetBlobPropertiesOptions; |
@@ -26,7 +26,6 @@ |
||
26 | 26 | |
27 | 27 | use MicrosoftAzure\Storage\Common\Internal\Resources; |
28 | 28 | use MicrosoftAzure\Storage\Common\Internal\Validate; |
29 | -use MicrosoftAzure\Storage\Common\Internal\WindowsAzureUtilities; |
|
30 | 29 | |
31 | 30 | /** |
32 | 31 | * Represents a set of access conditions to be used for operations against the |