Laravel AT Protocol Client (alpha & unstable)
1<?php
2
3namespace SocialDept\AtpClient\Facades;
4
5use Illuminate\Support\Facades\Facade;
6use SocialDept\AtpClient\Auth\ScopeGate;
7use SocialDept\AtpClient\Enums\Scope;
8use SocialDept\AtpClient\Session\Session;
9
10/**
11 * @method static ScopeGate forSession(Session $session)
12 * @method static ScopeGate forUser(string $actor)
13 * @method static bool can(string|Scope $scope)
14 * @method static bool canAny(array $scopes)
15 * @method static bool canAll(array $scopes)
16 * @method static bool cannot(string|Scope $scope)
17 * @method static void authorize(string|Scope ...$scopes)
18 * @method static array granted()
19 *
20 * @see \SocialDept\AtpClient\Auth\ScopeGate
21 */
22class AtpScope extends Facade
23{
24 protected static function getFacadeAccessor(): string
25 {
26 return 'atp-scope';
27 }
28}