1 | <?php |
||
17 | abstract class Grant |
||
18 | { |
||
19 | /** |
||
20 | * @param Client $http |
||
21 | * @param AuthFactory $factory |
||
22 | * @param Scope $scope |
||
23 | */ |
||
24 | abstract public function auth(GuzzleHttpClient $http, AuthFactory $factory, Scope $scope); |
||
25 | |||
26 | /** |
||
27 | * @return string |
||
28 | */ |
||
29 | protected static function getPathToOAuthToken(MastodonClient $client) |
||
33 | |||
34 | /** |
||
35 | * @return array |
||
36 | */ |
||
37 | protected static function getFormParams(AuthFactory $factory) |
||
44 | |||
45 | } |
||
46 |