Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
1 | <?php |
2 | |
3 | namespace Miniframe\SocialLogin\Provider; |
4 | |
5 | use Miniframe\Core\Config; |
6 | use Miniframe\Core\Request; |
7 | use Miniframe\Middleware\Session; |
8 | use Miniframe\SocialLogin\Model\User; |
9 | |
10 | interface ProviderInterface |
11 | { |
12 | /** |
13 | * Creates a new provider |
14 | * |
15 | * @param Request $request Reference to the Request object. |
16 | * @param Config $config Reference to the Config object. |
17 | */ |
18 | public function __construct(Request $request, Config $config); |
19 | |
20 | /** |
21 | * Starts the authentication process |
22 | * |
23 | * @return User |
24 | */ |
25 | public function authenticate(): User; |
26 | |
27 | /** |
28 | * Returns the image source for the logo of this provider. |
29 | * |
30 | * @return string |
31 | */ |
32 | public static function getLogoSource(): string; |
33 | |
34 | /** |
35 | * Returns the theme color for this provider. |
36 | * |
37 | * @return string |
38 | */ |
39 | public static function getThemeColor(): string; |
40 | } |