PluginProbe
Media Cloud Sync / 1.4.2
Media Cloud Sync v1.4.2
1.4.2 1.4.1 1.4.0 1.3.12 1.3.11 1.3.10 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.2.0 1.2.10 1.2.11 1.2.12 1.2.13 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 All 36 releases
← All changes | includes/sdk/google/guzzlehttp/guzzle/src/TransferStats.php +10 -10 1.2.8 → 1.4.2 View file →
@@ -1,11 +1,11 @@
1 1 <?php
2 2
3 -namespace Dudlewebs\WPMCS\GuzzleHttp;
3 +namespace Dudlewebs\WPMCS\GCP\GuzzleHttp;
4 4
5 -use Dudlewebs\WPMCS\Psr\Http\Message\RequestInterface;
6 -use Dudlewebs\WPMCS\Psr\Http\Message\ResponseInterface;
7 -use Dudlewebs\WPMCS\Psr\Http\Message\UriInterface;
5 +use Dudlewebs\WPMCS\GCP\Psr\Http\Message\RequestInterface;
6 +use Dudlewebs\WPMCS\GCP\Psr\Http\Message\ResponseInterface;
7 +use Dudlewebs\WPMCS\GCP\Psr\Http\Message\UriInterface;
8 8 /**
9 9 * Represents data at the point after it was transferred either successfully
10 10 * or after a network error.
11 11 */
@@ -45,9 +45,9 @@
45 45 $this->transferTime = $transferTime;
46 46 $this->handlerErrorData = $handlerErrorData;
47 47 $this->handlerStats = $handlerStats;
48 48 }
49 - public function getRequest(): RequestInterface
49 + public function getRequest() : RequestInterface
50 50 {
51 51 return $this->request;
52 52 }
53 53 /**
@@ -52,9 +52,9 @@
52 52 }
53 53 /**
54 54 * Returns the response that was received (if any).
55 55 */
56 - public function getResponse(): ?ResponseInterface
56 + public function getResponse() : ?ResponseInterface
57 57 {
58 58 return $this->response;
59 59 }
60 60 /**
@@ -59,9 +59,9 @@
59 59 }
60 60 /**
61 61 * Returns true if a response was received.
62 62 */
63 - public function hasResponse(): bool
63 + public function hasResponse() : bool
64 64 {
65 65 return $this->response !== null;
66 66 }
67 67 /**
@@ -79,9 +79,9 @@
79 79 }
80 80 /**
81 81 * Get the effective URI the request was sent to.
82 82 */
83 - public function getEffectiveUri(): UriInterface
83 + public function getEffectiveUri() : UriInterface
84 84 {
85 85 return $this->request->getUri();
86 86 }
87 87 /**
@@ -88,9 +88,9 @@
88 88 * Get the estimated time the request was being transferred by the handler.
89 89 *
90 90 * @return float|null Time in seconds.
91 91 */
92 - public function getTransferTime(): ?float
92 + public function getTransferTime() : ?float
93 93 {
94 94 return $this->transferTime;
95 95 }
96 96 /**
@@ -95,9 +95,9 @@
95 95 }
96 96 /**
97 97 * Gets an array of all of the handler specific transfer data.
98 98 */
99 - public function getHandlerStats(): array
99 + public function getHandlerStats() : array
100 100 {
101 101 return $this->handlerStats;
102 102 }
103 103 /**