| @@ -76,6 +76,9 @@ | ||
| 76 | 76 | return $response; | 
| 77 | 77 | } | 
| 78 | 78 | |
| 79 | + /** | |
| 80 | + * @param string $method | |
| 81 | + */ | |
| 79 | 82 | private function generateStreamContext($body, $headers, $method) | 
| 80 | 83 |      { | 
| 81 | 84 | return stream_context_create( | 
| @@ -191,7 +191,7 @@ | ||
| 191 | 191 | } | 
| 192 | 192 | |
| 193 | 193 | /** | 
| 194 | - * @return Session | |
| 194 | + * @return SessionInterface | |
| 195 | 195 | */ | 
| 196 | 196 | public function getSession() | 
| 197 | 197 |      { | 
| @@ -15,6 +15,9 @@ | ||
| 15 | 15 |  { | 
| 16 | 16 | protected $scopes = []; | 
| 17 | 17 | |
| 18 | + /** | |
| 19 | + * @param \PHPUnit\Framework\MockObject\MockObject $baseApiUri | |
| 20 | + */ | |
| 18 | 21 | public function __construct( | 
| 19 | 22 | CredentialsInterface $credentials, | 
| 20 | 23 | ClientInterface $httpClient, | 
| @@ -15,6 +15,9 @@ | ||
| 15 | 15 |  { | 
| 16 | 16 | protected $format; | 
| 17 | 17 | |
| 18 | + /** | |
| 19 | + * @param \PHPUnit\Framework\MockObject\MockObject $baseApiUri | |
| 20 | + */ | |
| 18 | 21 | public function __construct( | 
| 19 | 22 | CredentialsInterface $credentials, | 
| 20 | 23 | ClientInterface $httpClient, | 
| @@ -14,6 +14,9 @@ | ||
| 14 | 14 | |
| 15 | 15 | class Yahoo extends AbstractService | 
| 16 | 16 |  { | 
| 17 | + /** | |
| 18 | + * @param \PHPUnit\Framework\MockObject\MockObject $baseApiUri | |
| 19 | + */ | |
| 17 | 20 | public function __construct( | 
| 18 | 21 | CredentialsInterface $credentials, | 
| 19 | 22 | ClientInterface $httpClient, | 
| @@ -19,6 +19,9 @@ discard block | ||
| 19 | 19 | */ | 
| 20 | 20 | class Buffer extends AbstractService | 
| 21 | 21 |  { | 
| 22 | + /** | |
| 23 | + * @param \PHPUnit\Framework\MockObject\MockObject $baseApiUri | |
| 24 | + */ | |
| 22 | 25 | public function __construct( | 
| 23 | 26 | CredentialsInterface $credentials, | 
| 24 | 27 | ClientInterface $httpClient, | 
| @@ -98,6 +101,9 @@ discard block | ||
| 98 | 101 | return $code; | 
| 99 | 102 | } | 
| 100 | 103 | |
| 104 | + /** | |
| 105 | + * @param string $responseBody | |
| 106 | + */ | |
| 101 | 107 | protected function parseRequestTokenResponse($responseBody) | 
| 102 | 108 |      { | 
| 103 | 109 | parse_str($responseBody, $data); | 
| @@ -153,6 +153,10 @@ discard block | ||
| 153 | 153 | ); | 
| 154 | 154 | } | 
| 155 | 155 | |
| 156 | + /** | |
| 157 | + * @param \PHPUnit\Framework\MockObject\MockObject $client | |
| 158 | + * @param \PHPUnit\Framework\MockObject\MockObject $storage | |
| 159 | + */ | |
| 156 | 160 | protected function getQuickBooks( | 
| 157 | 161 | ?ClientInterface $client = null, | 
| 158 | 162 | ?TokenStorageInterface $storage = null | 
| @@ -177,6 +181,9 @@ discard block | ||
| 177 | 181 | ); | 
| 178 | 182 | } | 
| 179 | 183 | |
| 184 | + /** | |
| 185 | + * @param string $response | |
| 186 | + */ | |
| 180 | 187 | protected function getQuickBooksForRequestingAccessToken( | 
| 181 | 188 | TokenInterface $token, | 
| 182 | 189 | $response |