1 | <?php |
||
9 | class YandexWebmasterOAuth extends \yii\authclient\clients\YandexOAuth |
||
10 | { |
||
11 | |||
12 | public $hostId; |
||
13 | |||
14 | public function init() |
||
19 | |||
20 | /** |
||
21 | * Saves token in DB. |
||
22 | * @param OAuthToken $token |
||
23 | * @return ApiService|null|\yii\db\ActiveQuery|\yii\db\ActiveRecord|static |
||
|
|||
24 | */ |
||
25 | protected function saveAccessToken(OAuthToken $token) |
||
29 | |||
30 | /** |
||
31 | * Restores access token. |
||
32 | * @return OAuthToken auth token. |
||
33 | */ |
||
34 | protected function restoreAccessToken() |
||
45 | } |
||
46 |
This check looks for the generic type
array
as a return type and suggests a more specific type. This type is inferred from the actual code.