Total Complexity | 3 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
19 | class Authenticator |
||
20 | { |
||
21 | /** |
||
22 | * The callback that should be used to authenticate Sense users. |
||
23 | * |
||
24 | * @var \Closure |
||
25 | */ |
||
26 | public static $using; |
||
27 | |||
28 | /** |
||
29 | * Determine if the given request can access the Sense dashboard. |
||
30 | * |
||
31 | * @param \Illuminate\Http\Request $request |
||
32 | * @return bool |
||
33 | */ |
||
34 | public static function check(Request $request): bool |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * Set the callback that should be used to authenticate Sense users. |
||
43 | * |
||
44 | * @param \Closure $callback |
||
45 | * @return void |
||
46 | */ |
||
47 | public static function using(Closure $callback): void |
||
52 |