Total Complexity | 5 |
Total Lines | 60 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
16 | class AuthenticatedRequest |
||
17 | { |
||
18 | /** |
||
19 | * @var ServerRequestInterface |
||
20 | */ |
||
21 | private $request; |
||
22 | /** |
||
23 | * @var RegisteredClientInterface |
||
24 | */ |
||
25 | private $client; |
||
26 | /** |
||
27 | * @var null|ResourceOwnerInterface |
||
28 | */ |
||
29 | private $resourceOwner; |
||
30 | /** |
||
31 | * @var array |
||
32 | */ |
||
33 | private $scopes; |
||
34 | |||
35 | public function __construct(ServerRequestInterface $request, |
||
44 | } |
||
45 | |||
46 | /** |
||
47 | * @return ServerRequestInterface |
||
48 | */ |
||
49 | public function getRequest(): ServerRequestInterface |
||
50 | { |
||
51 | return $this->request; |
||
52 | } |
||
53 | |||
54 | /** |
||
55 | * @return RegisteredClientInterface |
||
56 | */ |
||
57 | public function getClient(): RegisteredClientInterface |
||
60 | } |
||
61 | |||
62 | /** |
||
63 | * @return null|ResourceOwnerInterface |
||
64 | */ |
||
65 | public function getResourceOwner(): ?ResourceOwnerInterface |
||
66 | { |
||
67 | return $this->resourceOwner; |
||
68 | } |
||
69 | |||
70 | /** |
||
71 | * @return array |
||
72 | */ |
||
73 | public function getScopes(): array |
||
76 | } |
||
77 | } |