1 | <?php |
||
14 | class Etsy extends AbstractService |
||
15 | { |
||
16 | |||
17 | protected $scopes = array(); |
||
18 | |||
19 | /** |
||
20 | * {@inheritdoc} |
||
21 | */ |
||
22 | public function init() |
||
28 | |||
29 | /** |
||
30 | * {@inheritdoc} |
||
31 | */ |
||
32 | public function getRequestTokenEndpoint() |
||
43 | |||
44 | /** |
||
45 | * {@inheritdoc} |
||
46 | */ |
||
47 | public function getAuthorizationEndpoint() |
||
51 | |||
52 | /** |
||
53 | * {@inheritdoc} |
||
54 | */ |
||
55 | public function getAccessTokenEndpoint() |
||
59 | |||
60 | /** |
||
61 | * {@inheritdoc} |
||
62 | */ |
||
63 | protected function parseRequestTokenResponse($responseBody) |
||
75 | |||
76 | /** |
||
77 | * {@inheritdoc} |
||
78 | */ |
||
79 | protected function parseAccessTokenResponse($responseBody) |
||
102 | |||
103 | /** |
||
104 | * Set the scopes for permissions |
||
105 | * @see https://www.etsy.com/developers/documentation/getting_started/oauth#section_permission_scopes |
||
106 | * @param array $scopes |
||
107 | * |
||
108 | * @return $this |
||
109 | */ |
||
110 | public function setScopes(array $scopes) |
||
119 | |||
120 | /** |
||
121 | * Return the defined scopes |
||
122 | * @return array |
||
123 | */ |
||
124 | public function getScopes() |
||
128 | } |
||
129 |
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.