1 | <?php |
||
8 | class CredentialsFactory implements CredentialsFactoryInterface |
||
9 | { |
||
10 | /** |
||
11 | * {@inheritDoc} |
||
12 | */ |
||
13 | 5 | public function createTemporaryCredentialsFromResponse(ResponseInterface $response) |
|
33 | |||
34 | /** |
||
35 | * {@inheritDoc} |
||
36 | */ |
||
37 | 3 | public function createTokenCredentialsFromResponse(ResponseInterface $response) |
|
52 | |||
53 | /** |
||
54 | * Get parameters from response. |
||
55 | * |
||
56 | * @param \Psr\Http\Message\ResponseInterface $response |
||
57 | * @return array |
||
58 | */ |
||
59 | 9 | public function getParametersFromResponse(ResponseInterface $response) |
|
67 | |||
68 | /** |
||
69 | * Get missing parameter's key. |
||
70 | * |
||
71 | * @param array $parameters |
||
72 | * @param array $requiredKeys |
||
73 | * @return string|null |
||
74 | */ |
||
75 | 9 | public function getMissingParameterKey(array $parameters, array $requiredKeys = []) |
|
83 | } |
||
84 |
If a method or function can return multiple different values and unless you are sure that you only can receive a single value in this context, we recommend to add an additional type check:
If this a common case that PHP Analyzer should handle natively, please let us know by opening an issue.